Post via Email using PHPmailer 5.1 not working
-
i write a PHP script to post to my blog anhtai2c.wordpress.com via Email using PHPmailer class 5.1
This script send email ok to any Email …
when i try to use it to send mail to (email visible only to moderators and staff) to pulish my new entry.this script say Success but i go to anhtai2c.wordpress
and press F5 ->no new entry espear..
my setting:?
$mail->IsSMTP(); // set mailer to use SMTP
$mail->CharSet=’UTF-8′;
$mail->Host = “smtp.gmail.com”; // specify main and backup server
$mail->Port = 465; // set the port to use
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->SMTPSecure = ‘ssl’;
$mail->Username = “(email visible only to moderators and staff)”; // your SMTP username or your gmail username
$mail->Password = “myemailpassword”; // your SMTP password or your gmail password
$from = “(email visible only to moderators and staff)”; // Reply to this email
$to=$Postemail; // Recipients email ID
$name=”Anh Tai”; // Recipient’s name
$mail->From = $from;
$mail->FromName = $from; // Name to indicate where the email came from when the recepient received
$mail->AddAddress($to,$name);
$mail->AddReplyTo($from,”Anh Tai”);
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true);
$mail->Subject = $title;
$mail->Body = $content; //HTML Body
any idea?
Sorry,my bad english?^^The blog I need help with is: (visible only to logged in users)
-
Post by email is built into WordPress.COM blogs you just need to enable it, you seem to be working way too hard.
See also for forums not in English:
https://en.forums.wordpress.com/topic/forums-in-other-languages-not-english?replies=1
-
If you are really changing the PHP code on your site then you are not hosted on WordPress.COM
so you need to make friends over at WordPress.ORG the keepers of the software you are using.
This site is for support of sites hosted on WordPress.COM. You should address your questions to WordPress.ORG the keepers of the software you are using: http://wordpress.org/support/
For more on the difference: http://support.wordpress.com/com-vs-org/
-
- The topic ‘Post via Email using PHPmailer 5.1 not working’ is closed to new replies.