Jump to content

Wordpress + Post By Mail


Bam
 Share

Recommended Posts

I tried this on a test blog and it works as advertised.

 

1. Create an email account to post to in your domain

2. Edit Wordpress to use the email address you want it to read

3. You must run the wp-mail.php file in your Wordpress install folder to have it capture the email from the account. (this can be set up to run in Cron periodically after you get it to pull in the email running it manually).

 

One thing I found out is the body of the email will not be captured unless the email is sent in plain text format.

 

You might want to read this Wordpress Wiki post

Link to comment
Share on other sites

  • 1 month later...

Running the cron every other minute is excessive. I would suggest setting it to run every 10 or 15 minutes instead.

 

The wget and get commands are disabled on the server for security reasons. You should be able to run the script using php -q /home/yourcpanelusername/public_html/wordpress/wp-mail.php.

Link to comment
Share on other sites

That cron job won't work because "wget" and "get" have been disabled for security purposes. Your cron job should look like this.

 

>/usr/bin/php -q /home/your-cpanel-name/public_html/wordpress/wp-mail.php

 

Change your-cpanel-name to your actual cpanel name. Also this relies on your blog being in a folder called "wordpress".

 

Edit: Rob, Rick was quicker than me! :xmas:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...