tauchai83 Posted February 7, 2007 Share Posted February 7, 2007 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 More sharing options...
lovemy7 Posted February 7, 2007 Share Posted February 7, 2007 Hi, I don't know Argosoft but normally From: and Return path require email addresses not IP addresses. IT seems the Argosoft is trying to relay. Change to emails addresses and try it Hope this helps Cheers Link to comment https://forums.phpfreaks.com/topic/37443-mail/#findComment-179013 Share on other sites More sharing options...
tauchai83 Posted February 7, 2007 Author Share Posted February 7, 2007 if email, what value should i put instead of localhost or IP address? Link to comment https://forums.phpfreaks.com/topic/37443-mail/#findComment-179018 Share on other sites More sharing options...
trq Posted February 7, 2007 Share Posted February 7, 2007 You'll need a valid email address. Link to comment https://forums.phpfreaks.com/topic/37443-mail/#findComment-179030 Share on other sites More sharing options...
tauchai83 Posted February 7, 2007 Author Share Posted February 7, 2007 ok..thanks...i going give it a shot...thanks a lot! Link to comment https://forums.phpfreaks.com/topic/37443-mail/#findComment-179072 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.