使用WAMP设置从本地主机发送电子邮件SMTP [英] Send email SMTP from localhost with WAMP setup

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

问题描述

我正在尝试配置php.ini文件,以便可以在开发环境中使用PHP从本地主机"发送电子邮件.我不再具有打开的SMTP服务器的访问权限,并且Gmail不再适用于其新的SSL设置.我做了很多研究,在这里和其他地方看到了很多解决方案",但是它们没有用.我尝试安装本地SMTP服务器(hMailServer要求安装密码,免费SMTP服务器不起作用,等等).

I'm trying to configure my php.ini file so I can send emails from 'localhost' in my dev environment using PHP. I no longer have access to an open SMTP server, and Gmail no longer works with their new SSL setup. I've done a lot of research and seen lots of "solutions" here and elsewhere, but they don't work. I've tried installing local SMTP servers (hMailServer asks for a password to install, Free SMTP Server doesn't work, etc).

有人知道免费的SMTP服务器吗,我可以在php.ini文件中进行设置,或者通过其他任何方式从本地主机发送邮件(我只是出于测试目的而需要它).切换到生产环境时,我不需要更改代码并以完全不同的方式发送电子邮件. (我正在使用Zend和Zend_Mail类)

Does anyone know of a free SMTP server I can setup in my php.ini file, or any other way to send mail from localhost (I just need it for testing purposes). I don't want to have to change code and send emails in a completely different way when I switch to production. (I'm using Zend and the Zend_Mail class)

推荐答案

在Windows中,我通常使用 Mercury 从本地主机发送电子邮件以进行测试. Mercury可免费用于非商业用途,并且也用于 xampp 中.

In windows I was usually using Mercury to sent emails from localhost for testing purposes. Mercury is free for non-commercial use and it is also used in xampp.

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

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