Hi,
I have no idea how nuts this will sound because I know virtually zero about PHP. But, there is something I would like to do and the program that does it is written in PHP.
It’s Wordpress. And WordPress provides the ability to let you post to your blog by email. It will go to your email account and grab the text that is in the messages. It also already sets the subject of the email as the title of the blog post. And is does a few other things.
But I need something done that it doesn’t do.
Example:
If my email inbox contains a message that looks EXACTLY like this...
MEDIA Invitation - Experts at McGill to examine solutions
Canada NewsWire (press release)
MONTREAL, April 7 /CNW Telbec/ - Experts agree - society is facing
an obesity epidemic. Solutions, however are around the corner ...
<http://www.newswire.ca/en/releases/archive/07/c3056.html>
CHILDHOOD Is New Battleground Against Obesity And Diabetes
Queens Chronicle - Rego Park,NY,USA
"The current epidemic in obesity is partly due to the rise of our push
button society. Increasingly, we have sedentary jobs and ...
<http://www.zwire.com/site/news.cfm?BRD=1861&dept_id=152368>
This Message was brought to you by email.
Remove this message:
http://www.domain.com/ab/remove?s=540c373a3ccd03a9&hl=en
Look for a related message:
Okay... right now when Wordpress goes and gets this message, it takes it and posts it to my blog exactly as above.
What I would like is to somehow format parts of the message on the way in.
I would like the message to look like this once it’s posted to the blog by Wordpress.
MEDIA Invitation - Experts at McGill to examine solutions
-- Canada NewsWire (press release) –
MONTREAL, April 7 /CNW Telbec/ - Experts agree – society is facing
an obesity epidemic. Solutions, however are around the corner ...
http://www.newswire.ca...
CHILDHOOD Is New Battleground Against Obesity And Diabetes
-- Queens Chronicle - Rego Park,NY,USA --
"The current epidemic in obesity is partly due to the rise of our push
button society. Increasingly, we have sedentary jobs and ...
Here are the differences:
The first line of each paragraph is bolded.
The second line of each paragraph is now contained in dashes (--)
The hyperlinks are truncated to only the domain
And everthing below and including the line "This Message was brought to you by email." is removed.
There is already a WordPress Plugin that will truncate hyperlinks on your blog pages after the email has arrived. But there is nothing that will format the incoming text in the manner above.
Does any think that PHP could format this text on the way in from the email before it is posted to the blog?
Or perhaps even another solution using PHP?
If this is possible I would like to hire someone to set it up for me. I hope it’s possible.
Thanks for any help with this!!!
Kindly,
John