e-mail when new pm?

Posted on Monday 8th September 2008 at 10:30 PM
schorsch
schorsch's Avatar
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 2008 at 11:50 AM
Dava
Dava's Avatar
put in a send mail command which sends the message once a private message has been sent to them
Dava
Posted on Tuesday 9th September 2008 at 10:13 PM
schorsch
schorsch's Avatar
Can you give me the code and say where I must involve him?
Posted on Tuesday 9th September 2008 at 11:34 PM
UrbanTwitch
UrbanTwitch's Avatar
Use the email validation in registration.php as a refrence! :-)
Posted on Tuesday 9th September 2008 at 11:38 PM
UrbanTwitch
UrbanTwitch's Avatar
USE THIS TEMPLATE
PHP Code
  1. $mail = mail("EMAIL TO SEND TO", "EMAIL TITLE", "EMAIL BODY", "From: EMAIL ADDRESS");


Example:

PHP Code
  1. $mail = mail("$logged[email]", "Hey there!", "Just a message from this site. HELLO!
  2.  
  3. 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 2008 at 07:45 AM
schorsch
schorsch's Avatar
I do not understand!
Posted on Wednesday 10th September 2008 at 10:40 AM
UrbanTwitch
UrbanTwitch's Avatar
Dude seriously, this is about as easy I can put it for you!
Posted on Wednesday 10th September 2008 at 03:35 PM
DanielXP
DanielXP's Avatar
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.
Topic is locked