setMailer is not defined (using global Mailer)

Wappler Version : 3.5.5
Operating System : Mac
Server Model: NodeJS
Database Type: MySql8
Hosting Type: AWS, Docker.

Expected behavior

I should be able to use the global mailer setup, and simply add a sendmail step to a server action.

Actual behavior

What actually happens?

Two different types of errors. If I use only a ‘Send Mail’ step, using the global Mailer then I get a ‘setMailer is not defined’ error:

{"status":"500","message":"setMailer is not defined","stack":"ReferenceError: setMailer is not defined\n at App.getMailer (/opt/node_app/lib/core/app.js:124:13)\n at App.send (/opt/node_app/lib/modules/mail.js:47:26)\n at App._exec (/opt/node_app/lib/core/app.js:384:57)\n at App._exec (/opt/node_app/lib/core/app.js:355:28)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)\n at async App.exec (/opt/node_app/lib/core/app.js:324:9)\n at async App.define (/opt/node_app/lib/core/app.js:314:9)"}

If I add a Setup Mailer step before hand in the server connect I get the following error:

  1. code: “ESOCKET”
  2. message: "connect ECONNREFUSED 1xx.xxx.xxx.’

How to reproduce

Setup a SMTP Mailer Step, then add a send mail step to a server action. I’m retrieving $_POST values from the page, and sending to our generic email address.

Community Page
Last updated: