Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I configure Form2Mail with a different email server and with SMTP authentication?

0
Posted

How can I configure Form2Mail with a different email server and with SMTP authentication?

0

If you want to use an external email server, you can do the following: STEP 1- Go to Line #568 and configure the Form2Mail.php file to send primary via SMTP: var $Mailer = “mail”; …change by: var $Mailer = “smtp”; Note: This first step is required only in a few servers, in most cases Form2Mail detects automatically that the available method is SMTP. STEP 2- Go to Line #38 and put there your SMTP server address if is different than “localhost” define(‘SMTP_SERVER’, ‘localhost’); Note: STEPS 3 and 4 are required only if your server required authentication. If authentication is not required, please ignore these steps: STEP 3- Go to Line #42 to activate authentication: define(‘USE_SMTP_AUTHENTICATION’, false); …change by: define(‘USE_SMTP_AUTHENTICATION’, true); STEP 4- On the lines #43 and #44 put your username and password.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.