Hi there clever people i a little bit of extra help with email/mailer.
i have a IIS with PHP and i have a php page with a email script. if i run it i get an email straight back, but cant figure it out how to setup in wappler.
my script
<?php
ini_set( ‘display_errors’, 1 );
error_reporting( E_ALL );
$from = “myemail@email.com”;
$to = “to@email.com”;
$subject = “PHP Mail Test script”;
$message = “This is a test to check the PHP Mail functionality”;
$headers = “From:” . $from;
mail($to,$subject,$message, $headers);
echo “Test email sent”;
?>
Strangely and maybe unrelated, but I have errors sending emails too. (IIS and ASP Classic)
"type":"Error","fileName":"lib/mail/mailer.asp","lineNumber":41,"errorNumber":-2147220960,"message":"The \"SendUsing\" configuration value is invalid.\r\n","stack"
Tried with my office365 and hosted SMTP server credentials
i tried the email script (at the top of the page and sends the email perfectly!
trying to find a tutorial on form to email on the latest version to make sure i have not missed a step!!
I believe for the port 587 which uses STARTTLS you need to uncheck the Use SSL, is connects first without SSL and uses STARTTLS command to switch to SSL.
; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
; http://php.net/sendmail-path
sendmail_path =“C:\wamp64\Sendmail\sendmail.exe”
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail().
;mail.force_extra_parameters =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off
; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
;mail.log =
; Log mail to syslog (Event Log on Windows).
;mail.log = syslog