Return to Help Center

Welcome to the Bravenet Help Forums. Here you can chat and meet other Bravenet Members. Please do not post advertisements.

Forum: Site Builder Discussions
This forum is locked and posting is not allowed
Author
Comment
EMAIL PROBLEMS

I have been using bravenet email via LIVE MAIL and it has been working fine until recently. I am now getting an error message...

authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]

Here is my email code
(THE xxxxxx is for my security)


$host = "mail.bravehost.com"; $port = "587"; $username = "support@xxxxxxxx"; $password = "xxxxxxxx"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'port' => $port, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("

" . $mail->getMessage() . "

"); } else { echo("

Message successfully sent!

"); }

I seem to recall an email about a php update of some sort but cannot locate it. This might have something to do with the issue.

Any help?
Thanks