[PHP] PLEASE HELP ON MAIL FUNCTION
Dear friend, I am using PHP 4.3.4 version. Please tell how to unpload a mail function. Error comes on executing mail function is mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in C:\Program Files\Apache Group\Apache2\htdocs\testprodigious\MAIL\mail_enquiry.php on line 30 Scprit used is ? /* recipients */ $to = [EMAIL PROTECTED]; /* subject */ $subject = Automatic Weekly Reports of Marketing from Prodigious; /*making message body */ $message =Wekly Reprot; /* To send HTML mail, you can set the Content-type header. there header are nessare for maing table in php and even for html pahe without these header only script will send in mail no brwser look*/ $headers = MIME-Version: 1.0\r\n; $headers .= Content-type: text/html; charset=iso-8859-1\r\n; /* and now mail it */ mail($to, $subject, $message,$headers ); ? I will be grateful to you. With Best Regards `.(*.(`. .).*).` ..Er. Kunal Aggarwal .. `.(.*(. `.)*.).` Software Engineer ICL Certifications Limited 372, Industrial Area Phase 1 Panchkula Haryana India Voice Talk:-+91-98159-65988(Mobile), +91-0172-2563358 (Office) * 24, +91-0172-2563358 (Fax) Email: [EMAIL PROTECTED] Website: www.iclcertifications.com
Re: [PHP] PLEASE HELP ON MAIL FUNCTION
Your Apache/PHP Mail function is working properly. The SMTP server needs to be configured to relay email from the PHP server. The normal configuration would be to allow the relay of all mail from that server. Chris kunal Aggarwal wrote: Dear friend, I am using PHP 4.3.4 version. Please tell how to unpload a mail function. Error comes on executing mail function is mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in C:\Program Files\Apache Group\Apache2\htdocs\testprodigious\MAIL\mail_enquiry.php on line 30 Scprit used is ? /* recipients */ $to = [EMAIL PROTECTED]; /* subject */ $subject = Automatic Weekly Reports of Marketing from Prodigious; /*making message body */ $message =Wekly Reprot; /* To send HTML mail, you can set the Content-type header. there header are nessare for maing table in php and even for html pahe without these header only script will send in mail no brwser look*/ $headers = MIME-Version: 1.0\r\n; $headers .= Content-type: text/html; charset=iso-8859-1\r\n; /* and now mail it */ mail($to, $subject, $message,$headers ); ? I will be grateful to you. With Best Regards `.(*.(`. .).*).` ..Er. Kunal Aggarwal .. `.(.*(. `.)*.).` Software Engineer ICL Certifications Limited 372, Industrial Area Phase 1 Panchkula Haryana India Voice Talk:-+91-98159-65988(Mobile), +91-0172-2563358 (Office) * 24, +91-0172-2563358 (Fax) Email: [EMAIL PROTECTED] Website: www.iclcertifications.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Please help with mail function
Hello all, I have a big problem with the mail function in a php script. If I run this script with root access, the mail function is working. If I try to run it like http://www.i-s-u.nl/test.php it won't work. What is happening, what can I do??? Below the little script: ? mail([EMAIL PROTECTED], onderwerp, test test test, [EMAIL PROTECTED]); ? Thanks, Rolf