Post By Email Not Working
-
I am using PHP to create an email by which I wanted to update my WordPress site. It does nothing. I send the email to both the secret email address and my main address to check for accuracy. It appears as expected in my personal email. But the post is never made.
If I cut and past the information into a new post from my personal email it will post.
So this must be some sort of formatting issue but I can’t figure out what.
The PHP code is as follows:
/develop tags for posting email
$tagdata=”[category 40daysmark]
“;
$tagdata .=”[tags gospel of mark, 40 day reading plan, bible reading plan]
“;
//$tagdata .=”[publicize twitter facebook]
“;
$tagdata .=”[Title Reading Through the Gospel of Mark]
“;//create email output with tag data preceeding bible text
$content =$tagdata;
$content .=$datetext;
$content .=$bibleoutput;
echo “CONTENT OF POST EMAIL =
“.$content;//establish email parameters
$to = “[email protected]”;
$subject = “Gospel of Mark in 40 Days – “.”‘$verses'”;
$headers = “From: [email protected]” . “\r\n”;
$headers .= “CC:[email protected]”.”\r\n”;
$headers .= “Content-Type: text/html\r\n”;//send posting email
mail($to,$subject,$content,$headers);Thanks in advance for the help.
- The topic ‘Post By Email Not Working’ is closed to new replies.