954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

update NEWS portion on website via EMAIL?

is it possible to update a portion of our website via email (if a blank email is sent, the dhtml window will be hidden) if an email with text is sent, it will show the box, saying NEWS and a border, with the text sent via email inside...

when you write again, it would erase the first and post the new text... email a blank email, text box goes away compeletly...
i need a master!
teach me!

thank you
pj

pjrey
Junior Poster in Training
54 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

I suggest you look into existing programs on script archives such as www.hotscripts.com and see if you can find something that does what you want or comes close to doing it.

KevinADC
Posting Shark
921 posts since Mar 2006
Reputation Points: 246
Solved Threads: 67
 

i have searched already, that is why i am posting here.. i found nothing.. i just searched over at hotscripts, found ntohing there as well... does anyone know if it is possible to do what i ask? i would imagine it is..
i dont know where to start... but i imagine someone knows...
any help and i would greatly appreciate it!

thank you
pj

pjrey
Junior Poster in Training
54 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

I am sure it is possible, but it would not be too easy. Your question is considerably beyond the scope of a typical question posted on a forum.

You would need a program that monitors incoming emails, seaches for a certain subject line or an email address and opens the email and extracts the data out of the email. It would need to run checks on the data to make sure its what the script expects.

The script would then do whatever the update is that you need done on the website. The easiest would be to put the data from the email in a file or database then have a script that reads in the data and generates the webpage dynamically, just like this forum does.

This would all have to be custom written for your specifc requirements.

Maybe its time to hire a programmer? Sites like eLance.com and oDesk.com have many programmers from around the world that will bid on your job.

KevinADC
Posting Shark
921 posts since Mar 2006
Reputation Points: 246
Solved Threads: 67
 

thanks so much for useful info
SNIP

mcjohn87
Newbie Poster
2 posts since Aug 2009
Reputation Points: 10
Solved Threads: 0
 

I cant do it via email, incoming mail servers are not easy to access
in php its a trivial matter
this code embeds in the html at the point the news is to appear

<?php $content=filegetcontents('path to uploadfile');
/* code to check & sanitize $content per your requirments */
if !$content { echo '<div class=\'filler\'>watch this space for news updates</div>';
exit; }
echo "<div class='news'>$content</div>"; ?>


to get the news text
and an upload link or ftp to send the data

its not the approach you asked for, but it may work for you, or a perl guru can produce similar code

almostbob
Posting Sensei
3,148 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

considering the thread is almost a year old.......

KevinADC
Posting Shark
921 posts since Mar 2006
Reputation Points: 246
Solved Threads: 67
 
considering the thread is almost a year old.......

unsolved, of vague interest to me, an alternate approach if the op is interested enough to return.

almostbob
Posting Sensei
3,148 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

you're welcome

KevinADC
Posting Shark
921 posts since Mar 2006
Reputation Points: 246
Solved Threads: 67
 

im still here...

pjrey
Junior Poster in Training
54 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You