Need help? Check out our Support site, then


send post by mail with phpmailer

  1. bellefemmesexy
    Member

    Hi everyone,

    I try to post in my blog (myblog.wordpress.com) by mail,
    I try from gmail, roundcube (on my own server) it's ok, but I try from my background admin website with phpmailer 5.1 (using smtp gmail) and this don't work :/

    my php script for send mail (from my website) work with all domain (gmail, own domain, hotmail...).
    I try my email adress (for send post to @post.wordpress.com) with roundcube, and it's work ...
    Just using phpmail or php mail() function don't work.

    So myblog.wordpress.com have mail restriction or I have a problem with my script ?

    I think width email header :
    X-mailer : PHPMailer 5.1 (phpmailer.sourceforge.net)
    ??

    Thank for your help (and sorry for my english ... :/ )

  2. Don't apologize for your english, I understood you just fine.

    I think this is beyond us volunteers here in the forums, so I would suggest contacting staff directly on this at http://en.support.wordpress.com/contact/ .

  3. bellefemmesexy
    Member

    I wait tomorrow for contact staff, just in case of someone have an idea ...

    Thank for your answer ;)

  4. You're welcome.

  5. bellefemmesexy
    Member

    Ok ... Great news for me ... Just a header's mail problem ...
    Now I have some problems with [TAG], [END] to solve but not a big deal ;)

    I post my "temp" solution with php mail() (phpmailer + smtp gamil later) :

    $headers .= "Date: ". date("D, j M Y H:i:s")."\n"; //date;
    $headers .= "From: <[email redacted]>\n"; // your mail
    $headers .= "To: \"blog\" <[email redacted]>\n"; // mail to post
    $headers .= "Content-Type: text/plain; charset=ISO-8859-1; format=flowed \n" ; // you can change ISO-8859-1 to UTF8
    $headers .= "Content-Transfer-Encoding: 7bit\n";

    $param = "-f <[email redacted]>"; // your mail

    return mail(
    '[email redacted]',
    'tilte width no tag',
    'Your message body HTML allowed',
    $headers,
    $param
    );

    My problem is in (hum ... strange ...) :
    Content-Type / $param = "-f .." / Content-Transfer-Encoding

    Now thats work fine ;)

Topic Closed

This topic has been closed to new replies.

About this Topic