问题描述
我在使用xampp时遇到问题.我要检查邮件表格,但看不到任何结果.我在此站点上将Mercury/32配置为类似于本教程:
I have problem i use xampp . i want check mail form but i can't see any result .i config Mercury/32 like this tutorial in this site :
http://system66. blogspot.com/2010/01/how-to-send-mail-from-localhost-with.html
我通过Outlook检查电子邮件是否有效.我在管理面板中选中了由Mercury发送邮件的发送邮件,它可以正常工作.
i check email by outlook it's work .i check send mail by Mercury send mail in admin panel and it's correctly work .
但是当我使用邮件php功能时,我无法发送电子邮件,也无法通过Outlook接收此电子邮件.
but i can't send email and can not recive this email by outlook when i use mail php function .
为什么?
请帮助我
推荐答案
我明白了.我设置了此配置,现在我可以在Outlook中接收发送的电子邮件了:
I got it . i set this config and now i can recieve my sent email in outlook:
我只需要配置 D:\xampp\sendmail\sendmail.ini
默认情况下,它包含以下行
I just need to configure D:\xampp\sendmail\sendmail.ini
By default, it contains the line
smtp_server=mail.mydomain.com
我不得不将其更改为
smtp_server=localhost
无需在较早版本的XAMPP中进行配置.[邮件功能]中的正确配置 D:\xampp\php\php.ini
是
No need to configure this in the older versions of XAMPP.The correct configuration for [mail function] in D:\xampp\php\php.ini
is
; XAMPP重要说明(1):如果XAMPP安装在基本目录中 带有空格(例如c:\ program filesD:\ xampp)fakemail和mailtodisk可以 无法正常工作. ; XAMPP重要说明(2):在这种情况下,请 将sendmail或mailtodisk文件夹复制到您的根文件夹中(例如 C:\ sendmail),并将其用于sendmail_path.
; XAMPP IMPORTANT NOTE (1): If XAMPP is installed in a base directory with spaces (e.g. c:\program filesD:\xampp) fakemail and mailtodisk do not work correctly. ; XAMPP IMPORTANT NOTE (2): In this case please copy the sendmail or mailtodisk folder in your root folder (e.g. C:\sendmail) and use this for sendmail_path.
; XAMPP:如果您要使用假邮件进行评论,请注释掉 转发到您的邮箱(sendmail文件夹中的sendmail.exe) sendmail_path = "\"D:\xampp\sendmail\sendmail.exe\" -t"
; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder) sendmail_path = "\"D:\xampp\sendmail\sendmail.exe\" -t"
; XAMPP:如果要使用mailToDisk,请注释掉它 将所有邮件写入D:\ xampp \ mailoutput文件夹 ; sendmail_path ="D:\xampp\mailtodisk\mailtodisk.exe"
; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the D:\xampp\mailoutput folder ; sendmail_path ="D:\xampp\mailtodisk\mailtodisk.exe"
现在,我正在收件箱中接收邮件.请注意,"D:\ xampp \"是我的XAMPP安装路径.
Now, I'm receiving mails in my inbox. Please note that "D:\xampp\" is my XAMPP installation path.
感谢所有朋友
这篇关于为什么php邮件功能在xampp中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!