Relaying not allowed message when sending mail with PHP function
问题 I'm using wamp server and trying to send email with the PHP function mail('me@ISPdomain.com','my subject','my body'); , with the following settings in php.ini : SMTP = 'ISP's SMTP server' smtp_port = 25 But I get the message: Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Relaying not allowed. Please use SMTP Authentication. How can this be solved? 回答1: Your ISP's mail servers do not allow "relaying", which is a good thing as otherwise they would end up moving a lot of spam.