Sending Email with J-Mail

This article applies to Windows hosting accounts only.

JMail is an ASP component which can be used to send e-mail via your ASP pages. For full documentation please visit the manufacturer's web site by clicking here.

Example
An example showing how the component may be used within an ASP script to send an e-mail is listed below: -

<%

' Declarations
Dim objJMail

' Create Object
Set objJMail = Server.CreateObject("JMail.SMTPMail")

' Assign parameters
objJMail.ServerAddress = "localhost"
objJMail.AddRecipient "name@somedomain.co.uk" ' The recipient's address
objJMail.Sender = "yourname@yourdomain.co.uk" ' Your e-mail address
objJMail.Subject = "Test E-Mail"
objJMail.Body = "This e-mail was send using JMail."

' Send the e-mail
objJMail.Execute

' Clean up
Set objJMail= Nothing

Response.Write "Mail Submitted"

%>

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Sending Email with ASP.NET

This article applies to Windows hosting accounts only.   Example Listed below is a simple...

Sending Email with CDOSYS

This article applies to Windows hosting accounts only. Sending e-mail with CDOSYS CDO...