HOME       >>       Programming

Sending E-mails After News Update? Coding needed??


alex1985

I need the following code or the idea how to reach this concept. Let's say, I have a database entry which is called "news", where all of the news stories are stored. If this database entry got modified, like the new post was added to the web-site by an administrator, the registered users will get some kind of email notification automatically, I mean the mails are sent automatically without the interaction of someone else.


Live-Dimension

I don't have the code, but the theory is that in (for example) submit.php (the page that submits the information to the database) calls notify.php which then sends everyone an email telling them about the submission or whatever you want.Simple


alex1985

All right, thanks. Can you write the code over here? Because I am a novice in PHP, and would like to have the correct code with the respect to security.


Live-Dimension

I'm also somewhat novice and wouldn't have a clue how to do this, let alone the security implications. Someone else will have to.


gogoily

U can modify the PHP codes which have the adding news function.But if you want to send E-mail, I'd like to say that will definately waste a lot of server resource


alex1985

So, write over here to help me!


Erdemir

This topic is too similar to http://forums.xisto.com/topic/58746-sending-e-mails-based-on-intervals/

Isn't it?


Framp

Use the mail() command

mail("user@email","Subject","New blablabla updated!");


alex1985

Can you write the whole thing, please?



VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.