dotnet webhosintg
  
asp.net hosting DotNet Hosting  eCommerce Hosting  SQL Server Hosting  ADO DotNet  ASP DotNet  DotNet Tutorials 
  
         
 

Your domain available ?
www.

BUY NOW
ASPNET 4
SQL SERVER HOSTING
SQL SERVER 2012 HOSTINGNew
DOTNETNUKE HOSTING
GET LISTED IN GOOGLE
30 DAY MONEY BACK
OUR PARTNERS
ASP NET TUTORIALS
WEB DESIGN TEMPLATES
TERMS
PRESS ROOM
CONTACT US




 

 

Send Email - ASP DotNet

Tutorial - Send Email with ASP DotNet


<%@ Page Language="VB" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Web.Mail" %>


<script runat="server">

Sub cmdSend_Click(sender As Object, e As EventArgs)

         Dim objMail As MailMessage
         objMail = New MailMessage()
         With objMail
                 .From = "gb@dotnet-webhosting.com"
                .To ="gb@dotnet-webhosting.com"
                .Subject = "Message sent using ASP.NET and CDONTS"
                .Body = "HTML Message sent from DotNet-Webhosting.com using                  ASP.NET and  Cdonts<br><a href=
                'http://www.dotnet-webhosting.com/tutorial/send-email.aspx'>
                Wonder how this is done?</a><br><br>
                .BodyFormat = MailFormat.Html
         End With
         SmtpMail.SmtpServer = "212.36.169.3"
         SmtpMail.Send(mail)

End Sub

</script>

<Form>
     <input type=submit name=cmdSend value="Send Email">
</Form>

 

 

 

Stacks of web space and bandwidth with all packages

ASP Hosting £6/Month


.net hosting

.NET Hosting £10/Month
400MB


Terms   Privacy

Copyright ©2002-2011 DotNet We Hosting UK, All rights reserved