使用PHP从SMTP服务器发送电子邮件
$from = "someonelse@example.com";$headers = "From:" . $from;echo mail ("borutflis1@gmail.com" ,"testmailfunction" , "Oj",$headers);
SMTP server response: 530 SMTP authentication is required
.
[mail function]; For Win32 only.; http://php.net/smtpSMTP = localhost; http://php.net/smtp-portsmtp_port = 25; For Win32 only.; http://php.net/sendmail-fromsendmail_from = someonelse@example.com
php.ini
狐的传说