• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 456
  • Last Modified:

VBScript runtime error '800a01b6'

Why does it have a problem with the senders address?

Microsoft VBScript runtime  error '800a01b6'
Object doesn't support this property or method: 'Mail.AddRecipient'
/login_success/inventory/mailsendconfirm.asp, line 38

It works if I have it as:
Mail.AddRecipient = "Me" "Me@myaddress.com"

But Not As:

Set Mail = Server.CreateObject("SMTPsvg.Mailer")      'create an Asp mail component.
Mail.FromName   = "Inventory Update"
Mail.FromAddress= "Inventory@somedomain.co.uk"
Mail.RemoteHost = "mrvnet.kundenserver.de"          ' The mail server you have to use with Asp Mail
Mail.AddRecipient = "Me@myaddress.com;mymate@hisaddress.co.uk"
Mail.Subject    = "Inventory - Update"
Mail.BodyText   = strBody
0
PeterHing
Asked:
PeterHing
1 Solution
 
Chris DentPowerShell DeveloperCommented:

You're not using the correct syntax. AddRecipient must be called for each recipient:

Mail.AddRecipient = "Me", "Me@myaddress.com"
Mail.AddRecipient = "MyMate", "mymate@hisaddress.co.uk"

HTH

Chris
0
 
eliavmCommented:
which line is line 38 ?
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now