| | |
update NEWS portion on website via EMAIL?
![]() |
•
•
Join Date: Sep 2008
Posts: 8
Reputation:
Solved Threads: 0
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
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
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.
•
•
Join Date: Sep 2008
Posts: 8
Reputation:
Solved Threads: 0
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
i dont know where to start... but i imagine someone knows...
any help and i would greatly appreciate it!
thank you
pj
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.
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.
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 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
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)
<?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>"; ?>
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.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
![]() |
Other Threads in the Perl Forum
- Previous Thread: VSS to SVN
- Next Thread: Perl input help
| Thread Tools | Search this Thread |






