dotnet webhosintg
  
Home | DotNet Hosting | eCommerce Hosting | SQL Server Hosting| ADO DotNet | ASP DotNet | DotNet Tutorials | Contact Us  |
  
         
 

Your domain available ?
www.

BUY NOW
ASPNET 3.0 New
ASPNET 2.0
SQL SERVER 2005 HOSTING
GET LISTED IN GOOGLE
30 DAY MONEY BACK
OUR PARTNERS
TUTORIALS
WEB DESIGN TEMPLATES
 TERMS
 PRESS ROOM




 

 

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


Copyright ©2002 DotNet Hosting UK, All rights reserved