如何在 XAMPP 本地设置邮件?

How to setup mail in XAMPP locally?(如何在 XAMPP 本地设置邮件?)
本文介绍了如何在 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 本地设置邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)