How to send email from ASP.NET using the ASPEmail Component
Added By: harringtonl2
Rated: (3 of 5) by 8.
Rate Snippet:
| Description: | This code snippet will allow you to send e-mail from ASP.NET using Brinksters ASPEmail component. This code will work for the other COM components Brinkster uses to send e-mail as well (for example JMail).
Currently, the mail classes in the System.Web.Mail namespace of the .NET Framework don't support sending e-mail through an SMTP Server that requires authentication. Although in version 1.1 of the .NET Framework, the .NET team added a Fields property to the MailMessage object where you can add user account information, it doesn't always work.
Because we can't use COM interop as we don't have access to the installed ASPEmail component on Brinkster's web servers to generate an Interop assembly, we're left with using reflection and using late binding. |
Language: C#
Save to web space E-mail Link
Code Snippet:
|