[thelist] Jmail in ASP problem

Casey Crookston casey at thecrookstons.com
Wed Apr 28 14:23:05 CDT 2004


Thanks for the help.

Here's the script:

       set mailObj = Server.CreateObject("JMail.SMTPMail")
       mailObj.Silent = true
       mailObj.ServerAddress = smtpServer
       mailObj.Sender = fromAddr
       mailObj.ReplyTo = userName
       mailObj.Subject = subject
       mailObj.AddRecipient = userEmail
       mailObj.ContentType = "text/html"
       mailObj.Body = body
       mailObj.Execute


Here's the error:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'userEmail.AddRecipient'
/cgi-bin/send_mail.asp, line 66
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Line 66 being:  mailObj.AddRecipient = userEmail

What is the correct syntax?  Or, what am I doing wrong.  All variables are
properly defined.

Thanks!




More information about the thelist mailing list