Thank you for contacting Online Support. if the Drupal is using its own email server to send out emails, it will not work. You will have to use our relay server information which should allow it to send. This relay server also allows 1000 emails per day to be sent out.
If you use the mail() function in your PHP, you do not need to specify an outgoing mail server. If you are using some other method besides mail() in your PHP code, use relay-hosting.secureserver.net for your relay server.
NOTE: A maximum of 1000 emails per day are allowed through our relay servers.
问题解决了, 跟大家分享一下;
本地测试没问题, 放到godaddy就发不出邮件, 于是咨询godaddy, 得到回复如下:
Thank you for contacting Online Support. if the Drupal is using its own email server to send out emails, it will not work. You will have to use our relay server information which should allow it to send. This relay server also allows 1000 emails per day to be sent out.
If you use the mail() function in your PHP, you do not need to specify an outgoing mail server. If you are using some other method besides mail() in your PHP code, use relay-hosting.secureserver.net for your relay server.
NOTE: A maximum of 1000 emails per day are allowed through our relay servers.
所以把SMTP服务器直接写成relay-hosting.secureserver.net, 不需要填写任何用户名和密码, 测试居然OK了..
火月Lv 4