php邮件设置在xampp [英] php mail setup in xampp
问题描述
但是,由于电子邮件选项似乎无法正常工作,因此设置有问题。
在做了一些阅读之后,我认为这与下面的事情有关,在我的服务器上发现在php.ini文件中
[邮件功能]
;仅适用于Win32
; * hp://*php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
;仅适用于Win32
; http://php.net/sendmail-from
; sendmail_from = postmaster @ localhost
[请注意,我已经从http://以上更改了hp:// ,因为本网站有限制发布超链接]
有什么需要改变吗?我已经看到了swiftmailer等软件,但是我不知道Xampp是否已经包含了这个?
任何提示将不胜感激!
感谢
James
我最喜欢的smtp服务器是 hMailServer 。
它有一个很好的Windows友好安装程序和向导。向下移动我曾经设置过的最简单的邮件服务器。
它可以通过您的gmail / yahoo / etc帐号进行代理,或者直接发送邮件。
安装完成后,xampp中的电子邮件只会在没有配置更改的情况下工作。
I'm learning PHP and have installed Xampp on my computer.
But I have a problem with the setup as the email option doesn't seem to be working.
After doing some reading I think it has something to do with the below, found on my server in the php.ini file
[mail function]
; For Win32 only.
; *hp://*php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost
[Please note I have changed above hp:// from http:// because of a restriction on this website to post a hyperlink]
Is there anything I need to change? I have seen software such as swiftmailer mentioned but I don't know if Xampp has this included already? Any tips would be greatly appreciated!
Thanks James
My favorite smtp server is hMailServer.
It has a nice windows friendly installer and wizard. Hands down the easiest mail server I've ever setup.
It can proxy through your gmail/yahoo/etc account or send email directly.
Once it is installed, email in xampp just works with no config changes.
这篇关于php邮件设置在xampp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!