• Resolved Pastor Walt Mayhew

    (@wmayhewwalnuthillccorg)


    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.

    https://www.ads-software.com/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi,

    First of all, please change your secret email address right away, as it’s supposed to be secret ?? Don’t publish it on the web anywhere, as anyone can use it to send posts to your site.

    Next, to dig into this, I’d need the site’s URL. Could you post your site URL here, so I can have a look?

    If you want it to remain private, you can also contact us via this contact form:
    https://jetpack.me/contact-support/

    If you contact us through our form, please make sure to include a link to this thread in your message.

    Thread Starter Pastor Walt Mayhew

    (@wmayhewwalnuthillccorg)

    I’ve discontinued the feature.

    Thanks for contacting me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post By Email Not Working’ is closed to new replies.