PDA

View Full Version : JMail Subject line


Griffithdesigns
11-08-2006, 09:47 AM
I am using the Jmail form setup from www.brainjar.com (http://www.brainjar.com). All is working great, however, does anyone know how to add a subject line to the email being sent? I tried adding subject = "Service Request" with no luck. Thanks

bluebeard96
11-08-2006, 09:55 AM
Mailer.Subject = "Your string"

bluebeard96
11-08-2006, 09:57 AM
where Mailer is the name of the JMail object you created.

function SendEmail(myAddresses,mySubject,myMailMessage,myPr iority)
Set Mailer = Server.CreateObject("JMail.SMTPMail")
Mailer.Sender = "no-response@telecardinc.net"
Mailer.ServerAddress = "localhost"
myAddressArray = Split(myAddresses,",")
for i = 0 to Ubound(myAddressArray)
Mailer.AddRecipient myAddressArray(i)
next
Mailer.Subject = mysubject
Mailer.Body = myMailMessage
Mailer.Priority = myPriority
end function

Griffithdesigns
11-08-2006, 10:07 AM
Mike,

Thanks for the quick reply. Got it to work!