View Single Post
Old 2005-07-26, 09:08 PM   #8
pornoTGB
Shut up brain, or I'll stab you with a Q-tip!
 
pornoTGB's Avatar
 
Join Date: Jun 2005
Location: Austria
Posts: 118
Send a message via ICQ to pornoTGB
$address = ''; //the address it will be sent to
$subject = ''; //the subject that will show up
$email = ''; //the email-text
$header = ''; //email-header

mail($address,$subject,$email,$header); //this line sends the mail


you used a wrong syntax in the mail-function
mail('sexwitch@sexwitch.com', $Title, $URL, $Category, "From: $nickname ($email)\r\n");
you can't just add your variables and seperate them with a ',' The function needs the correct syntax.. find more here: http://www.php.net/manual/en/function.mail.php
another mistake is "From: $nickname ($email)\r\n" .. this would put out exactly what you have .. rather try this: 'From: '.$nickname.'<br>Message: '.$email
what this does: it takes the text 'From: ' and adds the content of the variable $nick to it. then another text and the content of $email.. remember to add dots inbetween them

Last edited by pornoTGB; 2005-07-26 at 09:09 PM.. Reason: wrong url
pornoTGB is offline   Reply With Quote