Jump to content

PHP News by Email


ebang

Recommended Posts

What I want to do is be able to send email to an email address, like [email protected], and I want to be able to post the contents of the email on my website. In other words, I want to email news to an email account and have the news show up on my site. Even better, could I limit it so it only posts news from certain email addresses? Thanks a lot for any help-

Kevin
Link to comment
https://forums.phpfreaks.com/topic/29690-php-news-by-email/
Share on other sites

This would be rather difficult to achieve actually.  Number one, you should try and see if you can build a web based email system that will allow you to send, recieve, delete, etc mail via your web browser. 

If you've done that and all goes well, use the same setup to achieve what you're asking -- only problem with this is that regardless of how you program it, you'd have to visit a link in order to recieve the emails, and populate the news table in the database. 

Might just be more simple to create an add news script that is password protected, and only create passwords for those who you wish to have access.  That's the way I am doing it on my site.
Link to comment
https://forums.phpfreaks.com/topic/29690-php-news-by-email/#findComment-136483
Share on other sites

could you not write the file on a web page, rather than email, and have the page add it into your site/database and email it to a list of people. (could be stored in a variable or database to save time and for easy addition with no extra work!)

Would make life a hell of alot simpler, and you could still make it so it appeard to come from [email protected]

Doing entirly by email would be extreemly complex, and to have it automaticaly up date (with out clicking a line like radar sugests) would envole setting up some sore of cron job or something.  Lot of hastle to avoid using a web form!! and it could still take html or whatever you want so long as you put the right headers in.
Link to comment
https://forums.phpfreaks.com/topic/29690-php-news-by-email/#findComment-136521
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.