Persits Software, Inc. Knowledge Base Articles

Object doesn't support this property or method error

Problem Description

The following error is generated when calling AspEmail's method AddAddress (AddCC, AddBcc, AddReplyTo):

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method:
'Mail.AddAddress'

Solution

AddAddress is a method, not a property, therefore you must not use the '=' sign. The correct syntax is

Mail.AddAddress "addr@host.com"

or

Mail.AddAddress "addr@host.com", "Name"

but not

' incorrect!
Mail.AddAddress = "addr@host.com"