phat code My computer NEVER loc
Main

Projects

Downloads

Articles

Links

Forum

 

View Message

Back to Messages
René Wed May 23 2007 at 10:12 am
email notification
 
 
Hi,

I did some trials myself and it is really simple. Probably it can be done better, but the following works for a start:

In file index.php after the script

    # Post has been added, now redirect to the main page of the forum
        header('Location: '.php_self());

I added:

$sub = $subject;
$message = $message;
$afz="From: \"Notification from forum\"<no@mail.nl>";
$to="reciever_notification@mail.nl";

$bericht="Following message is posted on the forum by $name:\n
\n
$message";
mail($to , $sub , $bericht , "$afz") ;

The only handicap is that these mails can not be recieved by all providers; just regarding there spam-policy.
So probably there must be added some additional mail-info.
 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.