PDA

View Full Version : website help


jeffrebferren
October 7th, 2007, 04:55 PM
Is there anyway to automatically put a received email into a web page that I own?

ex:

if I get a daily devotional email, is there anyway to put the contents into my webpage without going into Yahoo Sitebuilder and adding it?

http://allnationsgospel.com

Pleye
October 9th, 2007, 12:07 AM
Yes. But I don't know any packaged software that does that (not familiar with it).

I'd start off by checking out www.hostscripts.com

If you were writing something yourself it would be a bit tricky because you'd have to login to your email (hopefully IMAP), find the message, retrieve it, then update your webpage.

A more simple approach is to find if the email newsletter publisher has an archive and just use something like cURL or wget to scrape it from their page.

The MOST simple approach I can think of is to see if the newsletter is available in RSS format. If it is, there are some software packages at hotscripts.com you could use - usually titled news feed read or aggregator. Most places have RSS feeds now. The nice thing about this is that you add the URLs of multiple feeds you'd like very easily. No connecting to mail, retrieving mail, etc.

NovaStorm
October 9th, 2007, 03:27 AM
Yeah, but it'll require some tricky coding and probably in PHP if you are using some lite code that does not have it already (obviously). I used to have this set up a few years ago for an old Weblog I had but I haven't set it up for the one I have right now, though it does have the option. What you do is set up a PHP script that reads the SMTP mail system of your website on a specific account. Whenever an email is received to that inbox it is sent to your site and posted. Of course you want to keep the email address completely secret other than for intended use otherwise spammers will have a field day with your site. So, it can be done, Ive used it before, but that's all I know about it :idunno Most or all weblog systems will do it as well as some CMS Portal systems.

Buzzardhut
October 9th, 2007, 04:05 AM
Is there anyway to automatically put a received email into a web page that I own?

ex:

if I get a daily devotional email, is there anyway to put the contents into my webpage without going into Yahoo Sitebuilder and adding it?

http://allnationsgospel.com
Setup a comments board and copy/paste

jeffrebferren
October 9th, 2007, 09:23 AM
right now what I do is everymorning wake up and log into my hotmail accont...... copy the daily devotional and then log into yahoo web page program.... then paste it into my page and then publish.... takes about 5 mins.....

Pleye
October 9th, 2007, 11:54 AM
If you stick with the email solution you'd need an address other than hotmail. I don't use it, but my understanding is that hotmail is a web based interface and you'd need to automatically check using a raw mail protocol like POP or IMAP (not SMTP - that's outgoing mail).

If I were you I'd still look for the RSS feed - it will make the process simple and you can use it for many feeds.

NovaStorm
October 9th, 2007, 02:04 PM
(not SMTP - that's outgoing mail).
Right, outgoing from a middle-man box which has a general spam filter. Sender ---> Filter FWD in/out Box ----> Script & Website

Pleye
October 9th, 2007, 02:45 PM
I forgot that if you are using your own mail server (like qmail) you can run a filter on incoming mail and do something with it.

However, when your email is hotmail, I'm not sure you can do anything short of screen scraping. I don't believe they allow checking email via IMAP or POP, at least not on the free accounts. Anyone?

NovaStorm
October 9th, 2007, 03:38 PM
I think he is using Yahoo for hosting, which I believe is completely web based. I'm not even sure if they allow anything but HTML, anyway. I used 1and1.com on the one I had email posting set up on. But yes, all that is needed is POP3 or IMAP4 and some form of scripting privileges (PHP or Perl).