问题描述
我使用godaddy来托管我的网站,并使用默认的godaddy邮件服务。
现在我想使用php邮件功能发送电子邮件到我的godaddy的电子邮件帐户的15个电子邮件地址中的其他电子邮件地址
I'm using godaddy for hosting my site and using default godaddy mail service.Now i want to sent email using php mail function to other email address from my 1 of my 15 email address of my godaddy's email accounts
我如何修复
谢谢
推荐答案
而不是使用刚刚调用OS邮件功能(即sendmail)的mail()函数,尝试像SwiftMail(免费的PHP邮件库)。它支持许多不同的发送邮件的方法,包括登录邮件帐户和发送电子邮件,就像您从自己的计算机上做的一样。您甚至可以从Gmail帐户发送电子邮件。
Instead of using the mail() function, which just calls the OS mail function (i.e. sendmail), try something like SwiftMail (free PHP mail library). It support many different ways of sending mail, including logging into a mail account and sending email, just like you would do from your own computer. You could even send email from a gmail account if you wanted.
这篇关于php mail()从godaddy服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!