VB.NET-INFORMATIONS.COM



VB.NET Communications Tutorial

How to send email from VB.NET

How to send email from VB.NET

VB.NET using SMTP protocol for send email . SMTP stands for Simple Mail Transfer Protocol . VB.NET using System.Net.Mail namespace for send mail . We can instantiate SmtpClient class and assign the Host and Port . The default port using SMTP is 25 , but it may vary different Mail Servers .In the following example shows how to send an email from a Gmail address.

The Gmail SMTP server name is smtp.gmail.com and the port using send mail is 587 . Here using NetworkCredential for password based authentication.

VB.NET SourceCode


You have to provide the informations like your gmail username and password , and the to address also.

VB.NET Communications Related Contents
VB.NET Send email using CDOSYS
How to find IP Address of Host
How to read a URL Content
VB.NET Socket Programming
VB.NET Server Socket Program
VB.NET Client Socket Program
VB.NET MultiThreaded Socket Programming
VB.NET MultiThreaded Server Socket Programming
VB.NET MultiThreaded Client Socket Programming
VB.NET Chat Server Program
VB.NET Chat Server
VB.NET Chat Client

VB.NET Related Tpoics
Microsoft .Net Framework Tutorials
VB.NET Language Basics Tutorials
VB.NET Program Flow Control Tutorials
VB.NET Collections Tutorials
VB.NET String Tutorials
VB.NET Files Tutorials
VB.NET Excel 2007 Tutorials
VB.NET Crystal Reports Tutorials
VB.NET Communications Tutorial
VB.NET ADO.NET Tutorial with source code
ADO.NET Data Providers help and Tutorial
VB.NET ADO.NET Dataset Tutorial
ADO.NET DataAdapter and Dataset
VB.NET ADO.NET DataView Tutorial

Search here for more Vb.Net Source Code :


   Categories

    HOME
    VB.NET

 
 
 
   













  |  Home   |  SiteMap   |  About   |
net-informations.com (C) 2008 All Rights Reserved