It runs well for a long time on php source on my computer (localhost, on Apache, through gmail account, SMTP authentication, withouth sendmail), but no SMTP connection can be established when running on ExeOutput.
First, you should try with another SMTP service than gmail, to see if it’s gmail that is blocking the connection or if the error lies in your application. A free SMTP online service: http://mandrill.com
ExeOutput doesn’t do something on its side, it just runs the PHP code with the PHP runtime. However, contrary to an online website, you have an EXE application. So some third-party software like antivirus, firewall… can block incoming or outgoing connections.
Thanks for info. Finally, I managed to send emails from my ExeOutput. For those, who also struggle, here some documentation.
In the old days, php’s mail was working well. Later on with increased SMTP authentication needs, PHPMailer is much better (and does not require painfull php.ini configuration).
More and more email provider close on automatic mailing systems. Gmail is still fine with SMTP (e.g. through PHPMailer, use SSL and port 465).
More professional is a specific email service, such as Mandrill.com with good monitoring. (For basic services, good and free of charge). This works well on PHP, but not on ExeOutput (on my network, at least). Just register there, use TLS and port 587.
To run in ExeOutput, you need another step: SMTP provider utility. There are a few, not many in the Internet. I use sendemail, a small portable program (just one file), no need for installation, just download the version with TLS support, and place it in the folder of your choice.
It is run with parameters (well explained) and can be called from PHP through ExeOutput’s exo_runhescriptcom.
NB: At least in my computers (different OS), exo_runhescriptcom flushes an ugly DOS window. This can be avoided. But I dont want to mix topics here. Get back to me, if you need help.