问题描述
我在PHP w / CodeIgniter编码,我想测试我的应用程序中发送电子邮件的一些功能。
I'm coding in PHP w/ CodeIgniter and I'd like to test some of the features in my app that send emails.
由于某些原因,我无法通过我的本地服务器(XAMPP)中的电子邮件帐户发送电子邮件,我也不想让一些垃圾邮件过滤器认为我我在测试时发送垃圾邮件。
For some reason, I couldn't send emails through my email account in my local server (XAMPP), and I also don't want some SPAM filter to think I'm spamming while I'm testing.
那么,有没有任何电子邮件服务可以用于测试?最好是不强制使用SSL,因为我有问题在我的本地服务器上工作。
So is there any email service that I can use for testing purposes? preferably one that doesn't enforce SSL, since I have problems getting that to work on my local server.
感谢您的帮助。
推荐答案
只要您不发送数十或数百个测试电子邮件,就可以使用您每天的电子邮件提供商(例如GMail)。将邮件功能的SMTP服务器设置为指向Google的。 (我认为SSL对于GMail是可选的,但我可能是错误的。)
As long as you're not sending out dozens or hundreds of test E-Mails, use whatever your everyday E-Mail provider is (e.g. GMail). Set the SMTP server of your mailing function to point to Google's. (I think SSL is optional with GMail, but I may be wrong.)
如果您的邮件库不支持使用外部SMTP服务器, 。但我想CodeIgniter有你覆盖那里。
If your mailing library doesn't support using an external SMTP server, switch to a different one. But I think CodeIgniter has you covered there.
这篇关于我应该使用哪个电子邮件服务测试发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!