CodeWidgets.com Online Source Code Library -ASP, ASP.NET, VB, VB.Net,
Microsoft® Access, Javascript, VBScript, Website Design, Web Applications,
Custom Programming Services Available.
|
|
ASP, ASP.NET, VB, VB.Net,
Microsoft® Access, Javascript, VBScript,
Website Design, Web Applications |
|
|
Shopping Cart
(0) Items $0.00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Website Stats to Date
|
|
Pages Viewed 4,401,732
|
|
Visitors
1,206,536
|
|
Widgets Viewed
3,009,755
|
| Since January 1/2003 |
| |
Active Users: 14
|
|
|
|
|
|
 |
|
|
| |
| Widget
#CS0051 |
Send Email Using SMTP Mail (ASP.NET)Send Email Using SMTP Mail (ASP.NET) |
|
|
|
|
|
| Widget Info
|
VB.Net Class
CMailMessage.vb
Send Email from your ASP.Net web pages
Copy and paste the code below into a VB.Net Class Module
'STARTCODE
Imports System.Web.Mail
Public Class
CMailMessage
'SMTP Mail Class
'Widget# CS0051 CodeWidgets.com
'SYNTAX to use the Class
'/////////////////
'Dim MailMessage As New CMailMessage()
'MailMessage.Send("RecipientEmail",
"SendersEmail", "The Subject", "This is the Message
Body", Mail.MailFormat.Html)
' MailMessage = Nothing
'/////////////////
Public Sub
Send(ByVal m_Recipient As
String, ByVal m_Sender
As String, ByVal
m_Subject As String, ByVal
m_Message As String, ByVal
m_Format As Mail.MailFormat)
Dim Msg As New
MailMessage()
With Msg
.To = m_Recipient
.From = m_Sender
.Subject = m_Subject
.BodyFormat = m_Format
.Body = m_Message
' Substitute HOST with the Local SMTP Domain name found
in the IIS Managment Console
Dim strMailHost As
String = "HOST"
SmtpMail.SmtpServer = strMailHost
SmtpMail.Send(Msg)
End With
End Sub
End Class
'ENDCODE
|
|
| Licensing |
| Format:
Plug & Play Code |
| Copy the Source Code Above.. |
| Licencing Terms:
No Restrictions |
Re-Distribution Permitted
This source code is provided to you "as is" without warranty
CLICK HERE FOR TERMS OF USE
Copyright 2002-2006 Comrie Software Solutions |
|
| Related Widgets |
|
|
| ShoppingCart Empty |
|
|
|
| Featured Widgets |
| WebStore |
| Online Store Application
Template (ASP.NET) |
| More... |
|
| ShoppingCart |
| WebUserControl (ASP.NET) |
| More... |
|
| Calendar Reports |
| (Monthly View) |
| For Microsoft® Access |
| More... |
|
Online Voting/Survey
Web-App |
 |
|
More... |
|
|
|
|
|
 .. this is one site that believes in Customer Service. I had questions, I had answers quickly. No "wait for days", No "buy this and
find out". Just courteous and HELPFUL answers.
It is refreshing to find a site that really cares about their products and
stands behind them!
And their products perform as they promote them. John L. |
 When I received my ASP.NET E-Commerce application it was for the purpose of marketing my software inventory via the internet. It took a minimal amount of time to launch it and offers host of traffic tracking options for further market study and analysis. Overall an excellent product.
Richard G.
|
|
|
|
|
|
|
|
|