Hi,
I am trying to create a page to post articles via e-mail.
the code is like;
require_once('../class.phpmailer.php');
.
.
.
.
.
$body = $_SESSION['rss_fullcontent'];
$subject=$_SESSION['rss_title'];
require_once('../smtpcheck/smtpvalidateclass.php');
$sender = '(my e-mail address)';
$SMTP_Valid = new SMTP_validateEmail();
$result = $SMTP_Valid->validate("(the secret e-mail address)", $sender);
if ($result[0]) {
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->IsHTML(true);
$mail->Host = "127.0.0.1";
$mail->From = "'(my e-mail address)";
$mail->FromName = "(My name)";
$mail->Sender = "'(my e-mail address)";
$mail->AddAddress("(the secret e-mail address)");
$mail->Subject = $subject;
$mail->Body = $body;
$mail->AltBody = strip_tags($body);
if(!$mail->Send()) {
$problems="Failed to send to "."(secret address)" - Mailer Error: " . $mail->ErrorInfo;
}
} else {
$problems="Failed to send to "."(secret address)". " - ".$result[1][0];
echo $problems;
}
if ($problems) {
} else {
$autoaff->emailed="yes";
$mail->ClearAddresses();
$mail->ClearAttachments();
}
}
I have been successfull on other blog site, but it doesn't work on WordPress.com.
There was no error showing, it's just not updating.
I tried e-mailing via mail client (outlook), it worked perfectly.
Would you tell me what is causing this problem?
The blog I need help with is businessinsure.wordpress.com.