php mail邮件配置方法
发布时间:2020-12-13 05:17:59 所属栏目:PHP教程 来源:网络整理
导读:打开etc目录下的php.ini文件,并找到"mail function" 对于windows操作系统,应确保SMTP和sendmail_from都提供。 [mail function] ; For Win32 only. SMTP = smtp.secureserver.net ; For win32 only sendmail_from = webmaster@tutorialspoint.com linux系统
打开etc目录下的php.ini文件,并找到"mail function" 对于windows操作系统,应确保SMTP和sendmail_from都提供。 [mail function] ; For Win32 only. SMTP = smtp.secureserver.net ; For win32 only sendmail_from = webmaster@tutorialspoint.com linux系统只需要设置sendmail_path [mail function] ; For Win32 only. SMTP =? ; For win32 only sendmail_from =? ; For Unix only sendmail_path = /usr/sbin/sendmail -t -i 配置好后,我们就可以使用php mail()函数了。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |