girok
06-22-2005, 03:48 PM
I have the following jmail code on my page that sends an email out to customers. I keep getting the following error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'AddRecipient'
The code looks like this:
<% If FP_SavedFields("customer") <> "" then
Set JMail = Server.CreateObject("JMail.SMTPMail")
'local SMTP server
JMail.ServerAddress = "mail.domainname.com"
' From
JMail.Sender = "billing@domainname.com"
JMail.Subject = "Thank you"
' Recipient
JMail.AddRecipient = FP_SavedFields("email1") & ("@domainname.com,") )'("me@domainname.com")
JMail.Body = ("Account Name: ") & FP_SavedFields("customer") & (", As requested we have charged your card $") & FP_SavedFields("payment") & (" for our Service. This payment is for service up until ") & FP_SavedFields("subends") & (". Account number: 9410") & FP_SavedFields("ID2") &(" Billing Cycle: ") & FP_SavedFields("cycle") & (". Thank you for your payment.")
JMail.Priority = 1
JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
JMail.Execute
End If
%>
What would be the correct syntax for this. Your help will be much appreciated.
Zain
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'AddRecipient'
The code looks like this:
<% If FP_SavedFields("customer") <> "" then
Set JMail = Server.CreateObject("JMail.SMTPMail")
'local SMTP server
JMail.ServerAddress = "mail.domainname.com"
' From
JMail.Sender = "billing@domainname.com"
JMail.Subject = "Thank you"
' Recipient
JMail.AddRecipient = FP_SavedFields("email1") & ("@domainname.com,") )'("me@domainname.com")
JMail.Body = ("Account Name: ") & FP_SavedFields("customer") & (", As requested we have charged your card $") & FP_SavedFields("payment") & (" for our Service. This payment is for service up until ") & FP_SavedFields("subends") & (". Account number: 9410") & FP_SavedFields("ID2") &(" Billing Cycle: ") & FP_SavedFields("cycle") & (". Thank you for your payment.")
JMail.Priority = 1
JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
JMail.Execute
End If
%>
What would be the correct syntax for this. Your help will be much appreciated.
Zain