Reputation: 8372
I'm looking for a .NET assembly I can use from within ASP.Net 3.5 to send one or two emails at a time.
I've looked at System.Net.Mail.MailMessage but the resulting communication between the script and the mail server uses ESMTP and I would really like to avoid that.
The emails to be sent are as simple as can be : not encrypted; not html; etc.
Priority is ease of deployment so don't want to have mess with IIS, Exchange etc.
Upvotes: 0
Views: 977
Reputation: 563
I've taken a look through MSDN and there doesn't seem to be a way to force System.Net.Mail to use older smtp standards (RFC821) however you shouldn't need to.
According to the remarks section of the following article, System.Net.Mail implements RFC2821 which states that if a host doesn't recognise the EHLO (or extended HELO) greeting then the client should issue HELO and proceed using only commands available in RFC821. http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx
As we discussed in the comments since you're just trying to avoid using authentication can garauntee you'll be able to use the System.Net.Mail library without needing to authenticate.
Upvotes: 1