Em Andamento

Email Basic CMS

NOTE: Project already awarded to RMASH (no bids necessary)

I want users to be able to update their own websites without having to do anything other than send an email. I will set up a POP3 email account. This account will be entirely for website updates.

The script I need written will be set up on the server to run automatically once per hour (or day or whatever) via a CRON job. It should be written in PHP. I want the script to access the mailbox (username/password and POP server info hard-coded into the script as variables at the top) and parse any unread emails (and then delete them once complete).

Here are details on the email format:

> FROM:

> SUBJECT: 4285 News

> BODY: (may be plain text, rich text, or HTML format) <h2>Breaking News</h2> <p>This is some news information...</p>

I will now explain the above. First of all, the $from_email value should be captured (in this case this is ). Next all characters before the first space in the subject line should be captured as $project_id (in this case 4285). There will be a list where Project Ids are compared to valid email addresses (eventually this will get pulled from a database, but for now it can be hard coded into the top of the script). If the address is allowed to send email for the project number referenced, then we continue. The remainder of the subject line (in this case "news") determines the page that will be updated. This will NOT be case sensitive. The value of this variable should be saved as $page_id. The entire body of the message should be converted into a "blob" string that can be inserted into a database (saved as $page_content). All tags should be escaped to properly save in the database, and should echo/print out in PHP (when called later) an exact copy of the original body text/html. If the message format is in HTML, the <head> tags and any background image/color should be stripped so that it can be inserted into the body of a page dynamically later on.

All code should be cleaned up as much as possible to remove unnecessary formatting and CSS tags so that the final code is clean and can be displayed without conflict.

Once you have the following variables populated ($project_id, $page_id, $page_content, $authorized=="1"), I can take that data and send the insert statement to MySQL. I will have it UPDATE the content in the database WHERE ProjectId=?? And PageId=?? with the new page content.

Then when someone visits the website, the page content will be retrieved from the DB and printed into the main body are of the website.

NOTE: Project already awarded to RMASH (no bids necessary)

Habilidades: Processamento de dados, PHP

Ver mais: email basic, up string, top website visits, top coded, string processing in c, rich text message, php send email script, not valid email address, not awarded, not a valid email address, job in cms, formatting websites, first day at a new job, email is not valid, email address not valid, email address is not valid, continue line in c, breaking news script, basic website html code, 1 hour email address, cms email format, inurlbasic cms web content mangement application, now later, email clean up, get email account

Acerca do Empregador:
( 41 comentários ) Houston, United States

ID do Projeto: #129702

Premiar a:

rmash

Please see pm.

$75 USD em 7 dias
(149 Avaliações)
6.8

3 freelancers are bidding on average $73 for this job

momleetech

we can do it

$100 USD in 10 dias
(109 Comentários)
6.8
multylines

we are PHP/MySQL based Graphics & web development company provide SEO, Content, Design, Help files, Flash demos and full testing all under single platform with a highly qualified and creative designers & developers Mais

$45 USD in 3 dias
(10 Comentários)
4.7