How to setup mail in XAMPP locally?(如何在 XAMPP 本地设置邮件?)
问题描述
我正在学习 PHP,并在我的计算机上安装了 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.
在做了一些阅读之后,我认为它与以下内容有关,在我的服务器上的 php.ini 文件中找到
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
有什么我需要改变的吗?我见过提到的swiftmailer之类的软件,但我不知道XAMPP是否已经包含了这个?
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?
推荐答案
我最喜欢的 smtp 服务器是 hMailServer.
My favorite smtp server is hMailServer.
它有一个很好的 Windows 友好的安装程序和向导.放下我曾经设置过的最简单的邮件服务器.
It has a nice windows friendly installer and wizard. Hands down the easiest mail server I've ever setup.
它可以通过您的 gmail/yahoo/etc 帐户代理或直接发送电子邮件.
It can proxy through your gmail/yahoo/etc account or send email directly.
安装后,xampp 中的电子邮件无需更改配置即可正常工作.
Once it is installed, email in xampp just works with no config changes.
这篇关于如何在 XAMPP 本地设置邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 XAMPP 本地设置邮件?


基础教程推荐
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- 在多维数组中查找最大值 2021-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01