The ASP Email Component  

Standard Hosting
Advanced Hosting
Co-located Servers
Custom Hosting
Domain Name Services
Other Services
Support

About Web Hosting   Contact Us   Back    

Using ASP Email to Send Mail from your Web Site

This document will explain how to use Simple Mail with your account.  Simple Mail is a server component which will allow you to send mail from a form on your website.   Please understand that although we will help wherever possible, out support staff cannot take responsibility for the correctness of your ASP scripts.

Simple Mail Instructions

Using the component is as simple as:

  1. Creating the object

  2. Setting a few properties

  3. Calling the SendMail method

The following code demonstrates how to use Simple Mail.  In this example Joe from Joe’s Widgets wishes to send an email to John Smith. Joe’s mail server is located at mailhost.localisp.net.

<%

Set Mail = Server.CreateObject("ADISCON.SimpleMail.1")
Mail.MailServer = "mailhost.localisp.net"
Mail.Sender = "Lou@somedomain.com"
Mail.Recipient = "jsmith@anotherdomain.com"
Mail.Subject = "Great Widgets!"
Mail.MessageText = "Dear John" & VbCrLf & "Your widgets order has been processed!"
Call Mail.Send
Set Mail = nothing

%>