I have some code in my asp.net which sends an email:
public void SendEmail(string message)
{
var body = message;
var email = new MailMessage(Configurati
There is a very simple way to test the resulting email in approvaltests. You need to separate the method into 2 methods, one that creates the email, one that sends the email. Then you can call.
EmailApprovals.Verify(mail)
There's a video showing the process here: http://www.youtube.com/watch?v=Sf16dPq2n3w