Jump to content

mail


tauchai83

Recommended Posts

i got this error:

 

Warning: mail() [function.mail]: SMTP server response: 551 User not local. We don't relay in C:\AppServ\www\mail.php on line 11

 

what's the problem?

 

I had installed a Argosoft mail server on my PC. and in the php.ini I set the sendmail_from's value to localhost. anything wrong?

 

<?php

$to = '[email protected]';

$subject = 'testing on you';

$body = 'hello how r u?';

 

$headers = "MIME-Version: 1.0rn";

$headers .= "Content-type: text/html; charset=iso-8859-1rn";

$headers .= "From: localhost<$from>rn"; ---> I'm donno this correct or not...should i put my IP address

$headers .= "Return-Path: <$return>";          or localhost 127.0.0.1....confused...

 

if (mail($to, $subject, $body, $headers))

?>

Link to comment
https://forums.phpfreaks.com/topic/37443-mail/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.