如何开发和测试发送电子邮件的应用程序(不使用测试数据填写某人的邮箱)? [英] How to develop and test an app that sends emails (without filling someone's mailbox with test data)?

查看:225
本文介绍了如何开发和测试发送电子邮件的应用程序(不使用测试数据填写某人的邮箱)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多应用发送电子邮件。有时它是一次或两个消息。有时这是数以千计的消息。



在开发中,我通常用我自己的地址替换任何收件人地址来测试。我确定这是所有人都做的,直到他们厌倦了,找到一个更好的解决方案。



我正在考虑创建一个虚拟SMTP服务器,只需捕获邮件并将其转储到SQLLite数据库或mbox文件中,或者其他。



但是这个工具已经存在了吗?如何测试发送电子邮件?

解决方案

我在几周前面临同样的问题,并写道: http://smtp4dev.codeplex.com


Windows 7 / Vista / XP / 2003/2010兼容的虚拟SMTP服务器。位于系统托盘中,不传送接收到的信息。可以快速查看,保存接收到的消息,并检查源/结构。用于生成电子邮件的测试/调试软件。



I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages.

In development, I usually test by substituting my own address for any recipient addresses. I'm sure that's what everybody else does, until they get fed up with it and find a better solution.

I was thinking about creating a dummy SMTP server that just catches the messages and dumps them in a SQLLite database, or an mbox file, or whatever.

But surely such a tool already exists? How do you test sending email?

解决方案

I faced the same problem a few weeks ago and wrote this: http://smtp4dev.codeplex.com

Windows 7/Vista/XP/2003/2010 compatible dummy SMTP server. Sits in the system tray and does not deliver the received messages. The received messages can be quickly viewed, saved and the source/structure inspected. Useful for testing/debugging software that generates email.

这篇关于如何开发和测试发送电子邮件的应用程序(不使用测试数据填写某人的邮箱)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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