Sending Mail With The System.Net Namespace

Category:
Network/Internet
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic.NET, ASP.NET

More information:
This snippet of code, with a few changes to match your email addresses and domain name, will let you send email from your applications.

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

Declarations:

Code: