Post by Email Problem (Incorrect Page Breaks Inserted)
-
I am having a problem posting to my blog by email. When the post is shown in my blog the formatting is incorect. Page breaks are inserted in the middle of sentences where they were not intended to be.
You can see what I mean here:
http://www.erikasorson.com/pct/pre-hike/testing-post-by-email-functionality/
These breaks follow a predictable pattern so its pretty obvious what is happening. When you are typing your email and your text reaches the edge of the text box it continues on the next line, even though you have not started a new paragraph or sentence. When wordpress picks up this email it interprets that as a page break which is places right in the middle of the document where it doesn’t belong. Since the width of the text box the message was composed in does not match the width of the box it is displayed on on the blog these breaks do not line up at the end of each line, but instead occur mid-sentence.
I have tested this sending email from three different sources and the result is the same with all of them. I have sent from Outlook (using plain text, which I understand is prone to problems and not really plain in the true sense of the word), but I have also sent emails from my webhosts online webmail application and from Hotmail, which I believe are both plain text. The emails have been typed directly in the email and were not pasted from another document which could contain some funny formatting.
I am pretty certain that the problem resides somewhere in wp-mail.php and not in the configuration or template settings of WordPress itself because when I run wp-mail.php manually through my browser the information window displays the original email and the posted content, at this point the new formatting has already occured and is shown in that window. Also, I have no similar problems when posting directly from WordPress, only when posting via email.
I have tried viewing the posts in both Internet Explorer and Mozilla and the results are the same.
I’m not sure if this is related but when I check the log file for the Cron job which automatically runs wp-mail.php from my server it shows the following error:
PHP Warning: Zend Optimizer does not support this version of PHP – please upgrade to the latest version of Zend Optimizer in Unknown on line 0
The Cron job still (apparently) works, wp-mail.php is run and the email appears on my blog, but the formatting is incorrect.
Any help on this will be greatly appreciated.
The topic ‘Post by Email Problem (Incorrect Page Breaks Inserted)’ is closed to new replies.