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
kevspad
Forum Newbie
Posts: 5 Joined: Sat Jun 17, 2006 4:47 pm
Post
by kevspad » Sun Jun 18, 2006 6:23 am
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'];
s.dot
Tranquility In Moderation
Posts: 5001 Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana
Post
by s.dot » Sun Jun 18, 2006 6:44 am
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
Post
by kevspad » Sun Jun 18, 2006 7:15 am
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