I’m getting the following error upon form submission:
SMTP Error: Could not connect to SMTP host. Main mail: Mailer was unable to send mailSMTP Error: Could not connect to SMTP host.
I’m currently using gmail to relay my forms. I noticed there was no place in the configuration file to specify the connection prefix (like in class.phpmailer.php). Specifying ssl is required for authenticating through gmail.
from class.phpmailer.php
I currently have my form working through a simple phpmailer code to verify the host and credentials, however I cannot get it to send with eform
Help?
I added the following lines:
eform.inc.php
$mail->IsSMTP(); // send via SMTP
$mail->Host = $smtp_host; // SMTP servers
$mail->Port = $smtp_port; // SMTP port
$mail->SMTPAuth = $smtp_auth; // turn on SMTP authentication
$mail->SMTPSecure = $smtp_secure;
$mail->Username = $smtp_user; // SMTP username
$mail->Password = $smtp_pass; // SMTP password
eform snippet
/* new SMTP parameters */
'smtp' => isset($smtp)? $smtp:false,
'smtp_host' => isset($smtp_host)? $smtp_host:'smtp.googlemail.com',
'smtp_port' => isset($smtp_port)? $smtp_port:465,
'smtp_auth' => isset($smtp_auth)? $smtp_auth:'true',
'smtp_secure' => isset($smtp_secure)? $smtp_secure:'ssl',
'smtp_user' => isset($smtp_user)? $smtp_user:'[email protected]',
'smtp_pass' => isset($smtp_pass)? $smtp_pass:'mypassword',
I also added &smtp_secure=`ssl` to my [eform] call.
Thanks in advance