p singh
p singh

Reputation: 21

mailing problem

thanks a lot for helping for previous one. now another is here. this is the response when i try to run the code.

<h3>copy of this order has been emailed to you for your records.</h3>
<?php echo $html_body;
//send email
$headers = array();
$headers[]= 'MIME-Versioon: 1.0';
$headers[] = 'Content-type: text/html;charset="iso-8859-1"';
$headers[] = 'Content-Transfer-Encoding: 7bit';
$headers[] = 'From: <[email protected]>';
$headers[] ='Bcc: <[email protected]>';
mail($email,"OrderConformation",$html_head.$html_body,join("\r\n",$headers));

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [email protected] in C:\xampp\htdocs\flowers\checkout3.php on line 388

bottom line is that i know nothing about how to configure server to be useful for php scripting.i am using xampp for developing this app.

Upvotes: 0

Views: 182

Answers (1)

Pekka
Pekka

Reputation: 449435

You are using your gmail address as the outgoing address.

That can't work, and if it did, your mails would get caught in any decent spam filter.

You need to specify a valid sender address on the domain the PHP script runs on.

Upvotes: 2

Related Questions