Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 是否配置xampp服务器以发送电子邮件?_Php_Email_Xampp - Fatal编程技术网

Php 是否配置xampp服务器以发送电子邮件?

Php 是否配置xampp服务器以发送电子邮件?,php,email,xampp,Php,Email,Xampp,是否有一种方法可以配置xampp server for PHP以启用mail()函数。如果没有,那么我是否可以安装本地邮件服务器来测试PHP的mail()功能?在PHP.ini上 ; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder) ;sendmail_path = "\"G:\xampp\se

是否有一种方法可以配置xampp server for PHP以启用mail()函数。如果没有,那么我是否可以安装本地邮件服务器来测试PHP的mail()功能?

在PHP.ini上

; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder)
;sendmail_path = "\"G:\xampp\sendmail\sendmail.exe\" -t"

; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the G:\xampp\mailoutput folder
sendmail_path="G:\xampp\mailtodisk\mailtodisk.exe"
只需取消对第一个sendmail路径和comment mailToDisk选项的注释。