View Single Post
  #4  
Old 31st March 2009, 19:00
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 147 Times in 128 Posts
Default

Sure there is.
Make sure you set a from email address in the header!

PHP Code:
$Name "Me"//senders name 
$email "me@me.tld"//senders e-mail adress 
$recipient "to@to.tld; //recipient 
$mail_body = "
Hello."; //mail body 
$subject = "
The subject of message"; //subject 
$header = "
From". $Name . " <" . $email . ">"; //optional headerfields 
mail($recipient, $subject, $mail_body, $header); 
__________________
Never execute code written on a Friday or a Monday.

Last edited by edge; 31st March 2009 at 19:15.
Reply With Quote