Mail Message body

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kevspad
Forum Newbie
Posts: 5
Joined: Sat Jun 17, 2006 4:47 pm

Mail Message body

Post by kevspad »

Hey all

Any reason why i wouldnt be receiving the message part on the email?

Code: Select all

ini_set("SMTP","mail.kevspad.co.uk");
ini_set("sendmail_from","kev@kevspad.co.uk");

mail($sendTo = "kev@kevspad.co.uk",$subject = "Dodpen Farm ORDER REQUEST",$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n");

$message = 'hello';
$message = "requirements" . $_POST['requirements'];
$message = "Telephone" . $_POST['telephone']. " at ". $_POST['time'];
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Yes. You're not putting $message in your mail() command. Also, the last two lines of $message should be .= (period equal sign).

http://www.php.net/mail
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
kevspad
Forum Newbie
Posts: 5
Joined: Sat Jun 17, 2006 4:47 pm

mmmmm

Post by kevspad »

Ok still no joy

Code: Select all

ini_set("SMTP","mail.kevspad.co.uk");
ini_set("sendmail_from","kev@kevspad.co.uk");

mail($sendTo = "kev@kevspad.co.uk",$subject = "Dodpen Farm ORDER REQUEST",$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n"
$message .= "requirements" . $_POST['requirements'] "Telephone" . $_POST['telephone']. " at ". $_POST['time']);
now get error

Parse error: parse error, unexpected '.' in D:\webspace\kevspad.co.uk\wwwroot\temp\process.php on line 41
Post Reply