I have deployed a PHP application on my tomcat server(Tomcat 6.0).Previously I was using XAMPP,but this needs specifically to be run on tomcat.I used this java bridge for that.Now I am not able to send mail through this,from localhost using gmail SMTP.
In XAMPP I used the sendmail.exe client for sending mails through LOCALHOST,but i don't know how to do it using tomcat.Tried to search but found hardly anything!!Badly stuck!Any pointers would be appreciated.
Thanks
If you are trying to send email from within your PHP application, then you want to us the built-in mail
function ( https://www.php.net/manual/en/function.mail.php). You can configure how mail
behaves with various options documented on http://www.php.net/.
From PHP, you aren't going to be able to use any services provided by Tomcat for SMTP.