使用 .net 测试 SMTP [英] Testing SMTP with .net

查看:15
本文介绍了使用 .net 测试 SMTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要配置一个 SMTP 服务器来测试我发送电子邮件的网站(用于注册确认等).

I need to configure a SMTP server for testing my website which sends emails (for registration confirmation etc).

我实际上并不希望发送电子邮件,我只是想确保我的代码正确无误.因此,我希望能够检查电子邮件是否放置在例如队列文件夹中.

I dont actually want the email to be sent, I just want to make sure that my code is correct. So I want to be able to check that the email is placed in a queue folder for example.

谁能推荐一个易于配置的 SMTP 服务器?

Can anybody recommend a SMTP server which is easy to configure?

推荐答案

还有 Papercut一个 SMTP 服务器,它将接收消息但不会将它们传送到任何地方(允许您确保它们被正确发送).接收到的消息在小图形用户界面中可见,并写入目录.

There's also Papercut which is an SMTP server which will receive messages but not deliver them anywhere (allowing you to make sure they are being sent correctly). The received messages are visible in a small GUI and are also written to a directory.

这篇关于使用 .net 测试 SMTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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