<%@ language= "VBscript" %>
<% Option Explicit
'declare your variables
Dim JMail
'create an instance of the JMail Object
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "mail.codefixer.com" '
the name of your mailserver
JMail.AddRecipient "sendto@email.com" '
the email it will be sent to
JMail.Sender = "sentfrom@Email.com" '
the email it will be sent from
JMail.Subject = "Your subject"
'JMail.ContentType = "text/html"
JMail.Body = "Hi just testing out this JMail component."
JMail.Execute
Set JMail= Nothing
%>
By default JMail will send the message in text format.
To send the email in HTML format you will need to uncomment the
line - JMail.ContentType = "text/html".
Just save your file as email.asp and run it on the
server and it should work.
Get the best asp web hosting provider now and save 30%
Plug and play ASP membership script that integrates with PayPal to let you charge recurring membership fees.