Send Mail Not Working - again

Just about everytime I try to setup send mail on a new website I run into issues with the form not sending!

Latest form show the following error in chrome developer windows:

/dmxConnect/api/forms/contactform.php:1 Failed to load resource: the server responded with a status of 500 ()

On that page all I get is:
A server error occured, to see the error enable the DEBUG flag.

I have published the site to make sure all files are on the server.

How do I enable DEBUG flag to see more of the error, the page doesn’t have a serverconnect attached to it yet, just a server connect form?

As usual for errors like that:

api page below shows the following error: Invalid address: (From)

Email account sending is valid and I can send and receive email from it so I can’t understand why wappler is saying it is invalid…

https://mydomain.co.uk/dmxConnect/api/forms/contactform.php

“code”: 0,
“file”: “/var/www/vhosts/mydomain.co.uk/httpdocs/dmxConnectLib/PHPMailer/PHPMailer/PHPMailer.php”,
“line”: 1299,
“message”: "Invalid address: (From): ",
“trace”: “#0 /var/www/vhosts/mydomain.co.uk/httpdocs/dmxConnectLib/modules/mail.php(82): PHPMailer\PHPMailer\PHPMailer->setFrom(’’, ‘’)\n#1 /var/www/vhosts/mydomain.co.uk/httpdocs/dmxConnectLib/lib/App.php(204): modules\mail->send(Object(stdClass), ‘’, NULL)\n#2 /var/www/vhosts/mydomain.co.uk/httpdocs/dmxConnectLib/lib/App.php(176): lib\App->execSteps(Object(stdClass))\n#3 /var/www/vhosts/mydomain.co.uk/httpdocs/dmxConnectLib/lib/App.php(144): lib\App->execSteps(Array)\n#4 /var/www/vhosts/mydomain.co.uk/httpdocs/dmxConnectLib/lib/App.php(133): lib\App->exec(Object(stdClass), false)\n#5 /var/www/vhosts/mydomain.co.uk/httpdocs/dmxConnectLib/lib/App.php(111): lib\App->exec(Object(stdClass))\n#6 /var/www/vhosts/mydomain.co.uk/httpdocs/dmxConnect/api/forms/contactform.php(8): lib\App->define(Object(stdClass))\n#7 {main}”
}

So what expression are you using in the from email address options in the server action send mail step?

$_POST.email imported from my linked form input field called ‘email’

Are you 100% sure the expression returns a value?
Try disabling the send mail step and add a set value step, having the same expression and Output enabled. Do you see anything returned in the dev tools when you submit the form then?

Also, it’s wrong to put the Setup Mailer step in the server action. It must be defined under Globals > Mailer. So remove it from the server action and define it there:

Setup Mailer was already in Globals so just removed from Server action, thanks for the tip.

Putting a static email address in the from and return worked. Deleted form and created new input fields but this time did not use the copy facility and added them individually from the Add New Component menu.
Form now sends OK.

Thank you for your help Teodor

Not sure i understand what you mean here, but obviously your form input name/id was different than the one you used under POST. So you could have just compared them, instead of recreating everyting.