VBScript runtime  error '800a01b6'

Posted on 2006-04-25
Last Modified: 2008-02-01
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" ""

But Not As:

Set Mail = Server.CreateObject("SMTPsvg.Mailer")      'create an Asp mail component.
Mail.FromName   = "Inventory Update"
Mail.FromAddress= ""
Mail.RemoteHost = ""          ' The mail server you have to use with Asp Mail
Mail.AddRecipient = ";"
Mail.Subject    = "Inventory - Update"
Mail.BodyText   = strBody
Question by:PeterHing
    LVL 70

    Accepted Solution


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

    Mail.AddRecipient = "Me", ""
    Mail.AddRecipient = "MyMate", ""



    Expert Comment

    which line is line 38 ?

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
    Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now