View Full Version : Help needed with Post by email in Wordpress
Barbouille
03-25-2011, 06:28 PM
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.
neoscrib
03-26-2011, 12:53 AM
You need to run wp-mail.php in your wordpress install directory. There's are several ways to do this.
Manually browse to http://blog.example.com/wp-mail.php in a web browser.
Setup a cron job in your cpanel to execute the following command every so often.
wget -N http://blog.example.com/wp-mail.php
Setup a cron job in your cpanel to execute the following command every so often.
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) (http://codex.wordpress.org/Post_to_your_blog_using_email)
Barbouille
03-26-2011, 06:38 AM
Thanks a million neoscrib.
Regards
chrisboggs
03-29-2011, 07:09 AM
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-
farcaster
03-29-2011, 08:28 AM
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?
chrisboggs
03-30-2011, 08:45 AM
You're right farcaster. I'll post somewhere else. Sorry for the intrusion.
mjsweeney27
09-08-2011, 07:39 PM
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!
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.