Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 526
0 Users 3 Guests Online
Forum Index » PHP + MySQL » e-mail when new pm?
Posted on Monday 8th September 2008 at 10:30 PM
schorsch
templates/default/images/noavatar.png's Avatar
Active Member
how can I make when a user receives an pm he gets an email that he received a new message?
Posted on Tuesday 9th September 200 at 11:50 AM
Dava
templates/default/images/noavatar.png's Avatar
Active Member
put in a send mail command which sends the message once a private message has been sent to them
Posted on Tuesday 9th September 200 at 10:13 PM
schorsch
templates/default/images/noavatar.png's Avatar
Active Member
Can you give me the code and say where I must involve him?
Posted on Tuesday 9th September 200 at 11:34 PM
UrbanTwitch
templates/default/images/noavatar.png's Avatar
Senior Member
Use the email validation in registration.php as a refrence! :-)
Posted on Tuesday 9th September 200 at 11:38 PM
UrbanTwitch
templates/default/images/noavatar.png's Avatar
Senior Member
USE THIS TEMPLATE
PHP Code
1
$mail = mail("EMAIL TO SEND TO", "EMAIL TITLE", "EMAIL BODY", "From: EMAIL ADDRESS");


Example:

PHP Code
1
2
3
$mail = mail("$logged[email]", "Hey there!", "Just a message from this site. HELLO!

No need for <br> in here because it automatically does that for you everytime you space!", "From: noreply@sodadome.com");


You need From: so it's not put into the Junk folder.
Posted on Wednesday 10th September at 07:45 AM
schorsch
templates/default/images/noavatar.png's Avatar
Active Member
I do not understand!
Posted on Wednesday 10th September at 10:40 AM
UrbanTwitch
templates/default/images/noavatar.png's Avatar
Senior Member
Dude seriously, this is about as easy I can put it for you!
Posted on Wednesday 10th September at 03:35 PM
DanielXP
avatars/1.png's Avatar
Senior Member
He will never learn.

Look at the send mail tutorial.

(Urban has gave you the complete code for that)

And they have also told you where to put the code.

(The place where the send message insert the message to the DB)

Any more help would make it as done for you.

Enough information for someone who can look through a couple lines of code.

Locked.