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

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

问题描述

我有很多发送电子邮件的应用程序.有时一次只有一两条消息.有时是数千条消息.

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.

我正在考虑创建一个虚拟 SMTP 服务器,它只捕获消息并将它们转储到 SQLLite 数据库或 mbox 文件或其他任何东西中.

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?

推荐答案

几周前我遇到了同样的问题并写了这个:http://smtp4dev.codeplex.com

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

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

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天全站免登陆