$toaddress = $memberemail;
$fromaddress="webmaster@britishcarforum.com";
$subject = "This is my subject text";
$mailcontent = "My mail content goes here";
mail($toaddress, $fromaddress, $subject, $mailcontent);
Oh, so I send this email via my web sites server and the mail gets delivered, but there are two problems. First, there is no subject in the email people receive and second, the "Fromaddress" is not the value of the variabe, but rather the from address has my site name in the first part, and my web site hose as the second part.
Instead of saying "me@britishcarsforums.com" the From: says: "britishcarsforums@mediahost.net"
What am I doing wrong?
Basil