943,693 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 3069
  • Perl RSS
Oct 2nd, 2008
-1

update NEWS portion on website via EMAIL?

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
pjrey is offline Offline
50 posts
since Sep 2008
Oct 2nd, 2008
0

Re: update NEWS portion on website via EMAIL?

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.
Last edited by KevinADC; Oct 2nd, 2008 at 4:52 pm.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Oct 2nd, 2008
0

Re: update NEWS portion on website via EMAIL?

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
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
pjrey is offline Offline
50 posts
since Sep 2008
Oct 2nd, 2008
0

Re: update NEWS portion on website via EMAIL?

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.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Aug 12th, 2009
0

Re: update NEWS portion on website via EMAIL?

thanks so much for useful info
SNIP
Last edited by happygeek; Aug 14th, 2009 at 6:02 am. Reason: fake sig snipped
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mcjohn87 is offline Offline
2 posts
since Aug 2009
Aug 13th, 2009
0

Re: update NEWS portion on website via EMAIL?

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 Syntax (Toggle Plain Text)
  1. <?php $content=filegetcontents('path to uploadfile');
  2. /* code to check & sanitize $content per your requirments */
  3. if !$content { echo '<div class=\'filler\'>watch this space for news updates</div>';
  4. exit; }
  5. 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
Last edited by almostbob; Aug 13th, 2009 at 12:50 am.
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Aug 13th, 2009
0

Re: update NEWS portion on website via EMAIL?

considering the thread is almost a year old.......
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Aug 13th, 2009
0

Re: update NEWS portion on website via EMAIL?

Click to Expand / Collapse  Quote originally posted by KevinADC ...
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.
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Aug 13th, 2009
0

Re: update NEWS portion on website via EMAIL?

you're welcome
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
Mar 19th, 2010
0
Re: update NEWS portion on website via EMAIL?
im still here...
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
pjrey is offline Offline
50 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: Copy text between tags
Next Thread in Perl Forum Timeline: simple scripting question, CGI log





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC