SALE. on all hosting.
Use promocode:
SPRING30
Login

Example JMAIL script

Below is an example form for JMail

--------------------jmail_form.htm----------------------

<form action="jmail_confirm.asp" method="Post">
<p>Your Name: <input name="VisitorName" size="46" type="text" /></p>
<p>Your Email: <input name="VisitorEmail" size="46" type="text" /></p>
<p>Your message:<textarea cols="35" rows="10" name="VisitorComments"></textarea></p>
<p><input name="Submit" type="submit" value="Submit" /></p>
</form>

-----------------jmail_form.htm ENDS---------------

---------------------jmail_confirm.asp BEGINS----------------------

<%@ LANGUAGE="VBSCRIPT" %>
<% Option Explicit %>
<%
'** This gets the information from the form
DIM strVName, strVEmail, strVComments, smtp_server_address, Jmail
strVName = request.form("VisitorName")
strVEmail = request.form("VisitorEmail")
strVComments = request.form("VisitorComments")

'** Here is where you name your mail server or IP address of the mail server
smtp_server_address = "mail.yourdomainhere.com"
msg.MailServerUserName = sUser 'put your smtp username here
msg.MailServerPassword = sPass 'put your smtp password here
msg.Send(smtpserver) 'put your server here

Set Jmail = Server.CreateOBject( "JMail.Message" )
Jmail.Logging = true
Jmail.Silent = true
JMail.From = strVName

'** Add your own email address in the line below
Jmail.AddRecipient "where_you_want_it_sent_to@your_desk.com"
Jmail.ReplyTo = strVEmail
JMail.Subject = "Email From Your Website"
JMail.Body = "This email was sent from the Web Site by " & strVName & _
vbCrLf & "Email Address = " & strVEmail & _
vbCrLf & "Message Follows Below: " & _
vbCrLf & _
vbCrLf & strVComments

'** Checking for success or failure
If Not Jmail.Send(smtp_server_address) then
' There was an error - print the error log
Response.write ("Error:<br />" & Jmail.log)
Else
' The message has been sent - redirect to confirmation page
Set JMail = Nothing
Response.write "Thank You " & strVName & ", your email was successfully sent to YOUR COMPANY NAME HERE"
End If
Set JMail = Nothing %>

---------------------jamil_confirm.asp ENDS----------------------

Thats it!

Thank you to reseller Craig @ Rolica.co.uk for this information.
Recent Posts
PHP Mail script for sending SMTP Authenticated emails

Below is an example a customer sent us to replace phpmail with a email script that uses SMTP...

How to use SMTP authentication within web scripts

Question)How do I add SMTP Authentication in my scripts Answer) This is different for each type...

Email Forwarding to free email addresses

From August 1st 2009, we have blocked email forwarding to free email addresses such as aol.com,...

How to host our email with another provider

To host your email with another provider, you need to do the following: 1.  Login to your...

PHP Mail Script with SMTP Authentication (UPDATED)

You can find an example of how to use this script HEREAn SMTP Authentication sample script was...