Hi,
I am using PHP code similar to this to try and send e-mail:
Code:
$config = array('auth' => 'login',
'username' => 'myaccount [at] gmail.com',
'password' => 'mypassword',
'ssl' => 'tls',
'port' => 587);
$userNotification = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config);
$mail = new Zend_Mail();
$mail->setFrom('another [at] email.com','Another Email');
$mail->addHeader('another [at] email.com');
$mail->setReturnPath('another [at] email.com');
$mail->addTo($userEmail);
$mail->setSubject($usernotificationsubject);
$mail->setBodyText($usernotificationmessage);
$mail->send($userNotification);
When I try to send the e-mail I get an error about TLS. I have enabled SSL for PHP by typing the following:
I am not sure if I need to get Apache to load this up as a module.. Any ideas?