Anisha Hosting
£10.00 per month
>> Discover more ...
eCommerce Hosting
£14.00 per month
>> Discover more ...
SQL Server Hosting
£22.00 per month
>> Discover more ...
Anisha Tutorials
Your domain available:

Articles

Windows 2003 - IIS6 Hosting Provider

Dot Net Hosting


MySQL

php


free webmail

FREE WebMail as standard
with all hosting account

 


dotnet hosting visual studio.net

Hosting with a difference ...

 

Tutorial - ASP - Send Email with ASP


<%@ 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.anisha.co.uk/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>

All Rights Reserved Anisha.co.uk