Computer Science Department
Semester 1, Year 2006/2007
ITCS 373: Class Lab Work
E-commerce3
Instructor: Dr. Eshaa M. Alkhalifa
Now that an email server is running properly we can go back to our script to learn how to customize it to work with our email server.
Warning: mail() [function.mail]: SMTP
server response: 501 <"My Store"<ealkhalifa@admin.uob.bh>>:
"@" or "." expected after ""My Store""
in C:\AppServ\www\ShopScript\includes\order_place.php on line 83
Warning: mail() [function.mail]:
SMTP server response: 501 <"My Store"<ealkhalifa@admin.uob.bh>>:
"@" or "." expected after ""My Store""
in C:\AppServ\www\ShopScript\includes\order_place.php on line 88
Warning: Cannot modify header information - headers already sent by
(output started at C:\AppServ\www\ShopScript\includes\order_place.php:83) in C:\AppServ\www\ShopScript\includes\order_place.php
on line 94


Warning: mail() [function.mail]:
SMTP server response: 501 <"myemail"<myemail@localhost.com>>:
"@" or "." expected after ""myemail""
in C:\AppServ\www\ShopScript\includes\order_place.php on line 83
Warning: mail() [function.mail]: SMTP server response: 501 <"myemail"<myemail@localhost.com>>:
"@" or "." expected after ""myemail""
in C:\AppServ\www\ShopScript\includes\order_place.php on line 88
Warning: Cannot modify header information - headers already sent by
(output started at C:\AppServ\www\ShopScript\includes\order_place.php:83) in C:\AppServ\www\ShopScript\includes\order_place.php
on line 94
mail($_POST["email"], EMAIL_CUSTOMER_ORDER_NOTIFICATION_SUBJECT, $smarty_mail->fetch("order_notification.tpl.html"), "From: \"".CONF_SHOP_NAME."\"<".CONF_GENERAL_EMAIL.">\n".stripslashes(EMAIL_MESSAGE_PARAMETERS)."\nReturn-path: <".CONF_GENERAL_EMAIL.">");
Replace this line with
mail($_POST["email"], EMAIL_CUSTOMER_ORDER_NOTIFICATION_SUBJECT, $smarty_mail->fetch("order_notification.tpl.html"), "From: ".CONF_GENERAL_EMAIL."\n".stripslashes(EMAIL_MESSAGE_PARAMETERS)."\nReturn-path: <".CONF_GENERAL_EMAIL.">");