Articles -- Email -- Sending Email with ASP.NET 2.0

Do not forget to add System.Net.Mail namespace:

Sending email in plain text format:

See Also:

Easy way to send email in few lines of code  
Add multiple To, CC, BCC
ReplyTo, Priority (Importance)
Custom Headers, Request a Read Receipt

Working with mail message body format:
Send email in plain text format
Send email in HTML format
Send Multi-Part MIME email
Encode the message body and subject

Send email with attachment:
... from file system
... from a stream
... as embedded external resource

Ask a Question


4AspNet POP3
.NET Component


Join WebHost4Life.com
Home E-mail Us Add to Favorities (Ctrl+D)