SMTP attachments are empty for files > 100K (CDO for W2K)

M

MS Guru

Hi,
The following simple ASP scripts works fine when the attached file is less than
100K. It fails (no errors or warnings returned) by inserting an empty attachment
when the file is greater than 100K. Users that execute the script are
authenticated by IIS 5.0 using basic authentication. If the user is member of
Administrator group the script work fine no matter what the size of the file is.
Any help is appreciated, especially from MS support.

Dim objMsg, oBP
Set objMsg = Server.CreateObject("CDO.Message")
objMsg.MimeFormatted = True
objMsg.From = "(e-mail address removed)"
objMsg.Subject = "Test"
objMsg.To = "(e-mail address removed)"
Set oBP = objMsg.AddAttachment("d:\test.pdf")
objMsg.Send
Set objMsg = Nothing

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,220
Latest member
AugustinaJ

Latest Threads

Top