从本地主机发送电子邮件 [英] Sending email from localhost

查看:905
本文介绍了从本地主机发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows上使用WampServer来测试一个网站。我有一个注册系统,用户可以获得确认电子邮件。

I'm using WampServer on Windows to test a site. I have a registration system where users get a confirmation email.

是否可以从本地主机发送电子邮件?

Is it possible to send emails from a localhost?

推荐答案

如果要直接从localhost发送电子邮件,则需要安装邮件传输代理(MTA),或者您喜欢SMTP服务。

If you want to send emails from localhost directly, you need to install a Mail Transport Agent (MTA), or if you like, a SMTP service.

IIS提供一个。否则,您可以在 Google 上找到其他人。

IIS provides one. You can otherwise find some others on Google.

您还可以更改您的 php.ini 邮件设置。这不会使用 localhost 发送电子邮件,而是允许您从PHP脚本发送电子邮件的中继主机。

You can also change your php.ini mail settings. This won't use localhost per say to send emails, but a relay host that will allow you to send emails from a PHP script.

这篇关于从本地主机发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆