How to Send an Attachment Using VB.NET

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
This snippet of code shows you how to send an attachment using VB.NET. Be sure to change the value passed to System.Net.Mail.MailAddress()

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: