Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: No Emails Being Sent – Anyone solve this yet?

This is what I made…

Does this works…

………………………………………………………………………………………………………………………………………

if ( !function_exists('bb_mail') ) {
function bb_mail($to, $subject, $content, $headers=''){

require_once('PATH_TO/Swift/lib/Swift.php');
require_once('PATH_TO/Swift/lib/Swift/Connection/SMTP.php');

$swift =& new Swift(new Swift_Connection_SMTP("smtp.gmail.com",587));
$smtp->setUsername("telecomdiary.forums");
$smtp->setpassword("xxxxxxx");
$swift =& new Swift($smtp);
$from = new Swift_Address("telecomdiary.forums@gmail.com","Telecom Forums | by Telecom Diary");

$message =& new Swift_Message($subject, $content);
if ($swift->send($message, $to, $from)) {return true;}
else{ echo "Message failed to send to ".$to." from ".$from;}
$swift->disconnect();
}
}
?>

…………………………………………………………………………………………………………………………………………………….

Any replacements require??

Skip to toolbar