Jump to content

mail() function


micmania1

Recommended Posts

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

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

[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

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

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

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.