ASP and Attachment/Attachments COM problem

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
Da1King
New user
New user
Posts: 20
Joined: 2004-11-03 00:53

ASP and Attachment/Attachments COM problem

Post by Da1King » 2005-07-21 01:00

Hey everyone having a problem using either the Attachments collection or Attachment object on a message. When trying to do the following:

Response.Write objAccount.messages.ItemByDBID(8).Attachments.Count

I receive the following:

Microsoft VBScript runtime error '800a01a8'
Object required: '[object]'
/text.asp, line 13

When I try this:

Response.Write objAccount.Messages.ItemByDBID(8).Attachment(0).Size

I receive the following error:

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Attachment'
/text.asp, line 13

This happens on the following system:
hMailServer - 4.0-B125
External MySQL - 4.0.25
Windows Server 2003 SP1

If anyone needs more information, like more script snippets I will gladly provide them. I am about to leave for the day I will be back tomorrow. So I won't be responding to any posts until then.

Post Reply