JMail Subject line

Discussion in 'General troubleshooting' started by Griffithdesigns, Nov 8, 2006.

  1. I am using the Jmail form setup from 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
     
  2. Mailer.Subject = "Your string"
     
  3. where Mailer is the name of the JMail object you created.

    function SendEmail(myAddresses,mySubject,myMailMessage,myPriority)
    Set Mailer = Server.CreateObject("JMail.SMTPMail")
    Mailer.Sender = "[email protected]"
    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
     
  4. Mike,

    Thanks for the quick reply. Got it to work!
     

Share This Page