Hi,
I'm writing a links directory program for my website, and am having some difficulties using the mail function. This is what I have:
/ recipients /
$to = "bobsmith@hotmail.com";
/ subject /
$subject = "New link added";
/ message /
$message = 'Your account details are as follows:
Title: $title
URL: $url
Description: $desc
Category: $category
';
/ additional headers /
$headers .= "From: Bob Smith <bobsmith@hotmail.com>\r\n";
/ and now mail it /
mail($to, $subject, $message, $headers);
It sends the mail fine, except I want the variables to be from the form the user has just submitted, with those same variable names. The e-mail just prints out $title, $url, etc...
Any ideas?