Persits Software, Inc. Knowledge Base Articles

Article: PS01040534

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"

Created: 2/8/2002 • Last Modified: 2/9/2002