w3JMail is an active server component (COM Object) that enables your script to send email messages via any external SMTP server.
http://www.dimac.net/default2.asp?M=Products/MenuCOM.asp&P=Products/w3JMail/start.htm
The following is a working sample of how this component works on our hosting accounts. Please note that we do not provide support for this sample. It is only provided as a guide to help you get started.
This is what the ASP code looks like:
<html>
<head>
<title>Confirmation </title>
<body>
<%
<head>
<title>Confirmation </title>
<body>
<%
Set JMail = Server.CreateObject ("JMail.SMTPMail")
' This is my local SMTP server
JMail.ServerAddress = "mail.yourdomain.com:25"
JMail.ServerAddress = "mail.yourdomain.com:25"
' Get the recipients mailbox from a form (note the lack of a equal sign).
JMail.AddRecipient "somebody@any.com"
JMail.AddRecipient "somebody@some.com"
JMail.AddRecipient "somebody@any.com"
JMail.AddRecipient "somebody@some.com"
' The body property is both read and write.
' If you want to append text to the body you can
' use JMail.Body = JMail.Body & "Hello world! "
' or you can use JMail.AppendText "Hello World! "
' which in many cases is easier to use.
JMail.Body = "Here you go."
' If you want to append text to the body you can
' use JMail.Body = JMail.Body & "Hello world! "
' or you can use JMail.AppendText "Hello World! "
' which in many cases is easier to use.
JMail.Body = "Here you go."
' 1 - highest priority (Urgent)
' 3 - normal
' 5 - lowest
' 3 - normal
' 5 - lowest
JMail.Priority = 1
JMail.AddHeader "Originating-IP", Request.ServerVariables ("REMOTE_ADDR")
' Send it...
JMail.Execute
JMail.Execute
%>
<center> An e-mail has been sent to your mailbox ( <%=request.form ("email")%> ). </center>
</body>
</html>
<center> An e-mail has been sent to your mailbox ( <%=request.form ("email")%> ). </center>
</body>
</html>