micmania1 Posted February 9, 2007 Share Posted February 9, 2007 I've read tutorials and im trying to do it the simplest of ways but it doesnt seem to work on my localhost server or on my hosting account. My hosting account is windows. Does this make a difference? mail ('[email protected]', 'Subject', 'Message', 'From: [email protected]'); Link to comment https://forums.phpfreaks.com/topic/37745-mail-function/ Share on other sites More sharing options...
tauchai83 Posted February 9, 2007 Share Posted February 9, 2007 You should download an email server such as the one at www.argosoft.com if you are using localhost, you need to configure your php.ini file sendmail_from , please uncomment it. and set the appropriate value. You may set it as localhost if you trying to send email from localhost. regards, chai Link to comment https://forums.phpfreaks.com/topic/37745-mail-function/#findComment-180557 Share on other sites More sharing options...
JasonLewis Posted February 9, 2007 Share Posted February 9, 2007 by dosnt work, what happens? nothing shows? you get errors? please post as much information as you possibly can. Link to comment https://forums.phpfreaks.com/topic/37745-mail-function/#findComment-180559 Share on other sites More sharing options...
micmania1 Posted February 9, 2007 Author Share Posted February 9, 2007 [Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:\Program Files\xampp\htdocs\pl\test2.php on line 2 That comes up on localhost and on my live server it remains blank and none of them send the email. I changed the php.ini file but hasn't made a difference. Link to comment https://forums.phpfreaks.com/topic/37745-mail-function/#findComment-180571 Share on other sites More sharing options...
tauchai83 Posted February 9, 2007 Share Posted February 9, 2007 i would like to see your coding. Can you post it here? what email sever that you are running? from: to: this 2 field what did you put? if you using Argosoft, please set up an account there 1st. Stop your apache and RESTART your Argosoft. http://localhost now should contain the Argosoft webpage. regards, chai Link to comment https://forums.phpfreaks.com/topic/37745-mail-function/#findComment-180576 Share on other sites More sharing options...
micmania1 Posted February 9, 2007 Author Share Posted February 9, 2007 Like I said, its the simplest of scripts because im just trying o get it working 1st. My script is in the 1st post. I'm using mercury. Connection from 127.0.0.1, Fri Feb 09 11:24:24 2007 HELLO computername MAIL FROM:<[email protected]> RCPT TO:<[email protected]> Relay attempt: from <[email protected]> to <[email protected]. 553 We do not relay non-local mail, sorry. QUIT 1 sec. elapsed, connection closed Fri Feb 09 11:24:25 2007 Link to comment https://forums.phpfreaks.com/topic/37745-mail-function/#findComment-180582 Share on other sites More sharing options...
micmania1 Posted February 9, 2007 Author Share Posted February 9, 2007 I really need help on this. Im releasing a test version tomorrow and would prefer to verify the user via email. I will also need this function for lost passwords and to contact me. Link to comment https://forums.phpfreaks.com/topic/37745-mail-function/#findComment-180811 Share on other sites More sharing options...
micmania1 Posted February 9, 2007 Author Share Posted February 9, 2007 SOLVED My host have me a line of code I had to put before I sent it. Thanks for your input. Link to comment https://forums.phpfreaks.com/topic/37745-mail-function/#findComment-180852 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.