Results 1 to 7 of 7

Thread: Help needed with Post by email in Wordpress

  1. #1

    Default Help needed with Post by email in Wordpress

    Hi

    Earlier today, I setup a new wordpress blog using simplescripts (flawless installation) in a subdomain that I created on my site. Say blog.example.com

    I then set up in my Control Panel a secret email address to be used for posting articles to my blog using my email software Thunderbird. Say the email address is rp3tw7wbpsad@blog.example.com

    I then set up in Wordpress under Settings, Writing the following:

    server: mail.example.com
    login: rp3tw7wbpsad@blog.example.com
    Password: Say: xtP6Bm$RQmP

    I then sent an email for testing purpose to: rp3tw7wbpsad@blog.example.com
    Then I went to my mailbox and true enough, the email I sent had been received and was sitting right there in my inbox.

    However, when I go to my blog which has been setup in subdomain blog.example.com, there is no post showing. The email made it to the inbox but did not make it as a post on my blog.

    Any idea what I did wrong ?

    Thanks
    Note: needless to say, example.com was replaced with my real domain name.
    Last edited by Barbouille; 03-25-2011 at 06:31 PM.
    Barbouille

  2. #2
    Join Date
    Mar 2011
    Location
    Kandahar, Afghanistan
    Posts
    12

    Default

    You need to run wp-mail.php in your wordpress install directory. There's are several ways to do this.

    1. Manually browse to http://blog.example.com/wp-mail.php in a web browser.
    2. Setup a cron job in your cpanel to execute the following command every so often.
      Code:
      wget -N http://blog.example.com/wp-mail.php
    3. Setup a cron job in your cpanel to execute the following command every so often.
      Code:
      php /full/path/to/your/wp-mail.php


    There are other ways, but those three are the easiest. I'd recommend the last option. The wp-mail.php scripts will only check mail at a maximum every 5 minutes. If you don't write very often, I'd recommend setting up your cron to run as infrequent as possible (once a day). If you do write frequenty, I'd recommend setting up the cron to run at a maximum every 15 minutes. You could do it more frequenty (but no more frequently than every 5 minutes, unless you edit wp-mail.php), but I don't see why you would need to.

    If you've already done that, the only other things I can see is that you didn't mention in your original post setting the port number in the WordPress settings. The port should be 110 unless you want to use SSL, then you want port 995. If you do intend to use SSL then you'll want to change the server setting to ssl://mail.example.com. It looks like your email server and wordpress blog are on the same server so I'd actually recommend using localhost instead of mail.example.com.

    Post to your blog using email (http://codex.wordpress.org/Post_to_your_blog_using_email)
    Last edited by neoscrib; 03-26-2011 at 01:11 AM.

  3. #3

    Default

    Thanks a million neoscrib.

    Regards
    Barbouille

  4. #4
    Join Date
    Mar 2011
    Posts
    4

    Default

    I am unable to email from my Wordpress blog, have spent days trying to figure out why including calls to Tech Support to verify correct settings, setting up a valid wordpress@mydomainname.com email address, using the WP-Mail-SMTP plugin to test email settings without success. When I manually browse to http://blog.example.com/wp-mail.php in a web browser I get the following error message: 'POP3 connect: Error [0] [php_network_getaddresses: getaddrinfo failed: Name or service not known]' Do you or anyone else have suggestions as to how I might troubleshoot this problem? I have been researching it for days and it is preventing a customer's site's Forum from admitting new users and I need a solution. Any help would be greatly appreciated! -c-
    Last edited by farcaster; 03-29-2011 at 08:25 AM.

  5. #5
    Join Date
    Apr 2008
    Location
    Chasing the Holy Grail - Pacific Northwest
    Posts
    1,312

    Default

    Sending email FROM wordpress is a lot different than using email to POST TO wordpress, and that's what this thread is about. Sending mail from wordpress does not involve the use of the wp-mail.php script.

    Which problem are you having?
    In the Hyperion universe, a farcaster is an instantaneous transportation device.
    Experience: The thing you get just after you need it.

  6. #6
    Join Date
    Mar 2011
    Posts
    4

    Default

    You're right farcaster. I'll post somewhere else. Sorry for the intrusion.

  7. #7
    Join Date
    Sep 2011
    Posts
    1

    Default sorry - newbie here......

    Setup a cron job in your cpanel to execute the following command every so often.
    Code:

    php /full/path/to/your/wp-mail.php



    to setup a cronjob am i really just cut and pasting the above into the cronjob field?

    and what is the full path to my domain?

    my word press blog is www chasingbrucegreenwald.com hosted on bluehost...

    if my "secret" email address for posts is 1234@chasingbrucegreenwald.com

    could you tell me exactly what my full path would be?

    and i just have to cut and paste that?

    thanks so much...i'm making progress but its tough when you're new!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •