I need a php code for this-
when a person on my website gets a message online from another user of my website i want that there will be an email sent automaticaly to the email address of the recipient saying you have a new message fron this guy on this site.
YOu know what i mean,every site has it,like if someone on myspace send you a msg you will bee notifed by mail.Can someone write the code for me?Coding help please!Its urgent!?
Soliciting for any purpose is against the Community Guidelines.
1. Create a simple database program that stores the messages in a MySQL table. Columns for the tables would be to, from, messagedate and messagetext
http://phpeasystep.com/mysql.php
2. Create notification script that sends e-mail after message is stored in database.
http://phpeasystep.com/php-cate.php?cate鈥?/a>Coding help please!Its urgent!?
PHP has a built-in mail() function that allows you to send mail -- see http://www.php.net/mail.
That said, it sounds like you also need some sort of user authentication. This is a far more advanced topic; take a read at http://ca.php.net/session for information about PHP sessions.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment