Hi,
Should nDumbster not support the following test case?
[Test]
public void TestSendToMany()
{
System.Web.Mail.SmtpMail.SmtpServer = "localhost";
System.Web.Mail.SmtpMail.Send("sender@here.com",
"receiver1@there.com;receiver2@there.com", "This is the
subject", "This is the body.");
SmtpMessage mail = _smtpServer.ReceivedEmail[0];
Assert.AreEqual("<receiver1@there.com>;
<receiver2@there.com>", mail.Headers["To"]);
Assert.AreEqual("<sender@here.com>",
mail.Headers["From"]);
}
It would be great to get a version that supported this!
Thanks for a great effort,
Dadi Ingolfsson.
Logged In: YES
user_id=1177499
Originator: NO
Your test have been added to the test suite with one modification, it uses comma instead om semicolon.
Assert.AreEqual("<receiver1@there.com>,<receiver2@there.com>", mail.Headers["To"]);
John