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

Discussion in 'ASP General' started by MS Guru, Sep 5, 2003.

  1. MS Guru

    MS Guru Guest

    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 = ""
    objMsg.Subject = "Test"
    objMsg.To = ""
    Set oBP = objMsg.AddAttachment("d:\test.pdf")
    objMsg.Send
    Set objMsg = Nothing

    Thanks!
    MS Guru, Sep 5, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Hilton

    w2k CDO AddAttachment

    Andrew Hilton, Jan 18, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    616
    Andrew Hilton
    Jan 18, 2004
  2. a
    Replies:
    22
    Views:
    631
    CBFalconer
    Nov 27, 2007
  3. codewarrior
    Replies:
    0
    Views:
    518
    codewarrior
    May 4, 2009
  4. AspDotNetDeveloper

    File Attachments MDAC Not Working Past 100K

    AspDotNetDeveloper, Jul 23, 2003, in forum: ASP General
    Replies:
    3
    Views:
    151
    AspDotNetDeveloper
    Jul 23, 2003
  5. Andrew Hilton

    w2k CDO AddAttachment

    Andrew Hilton, Jan 18, 2004, in forum: ASP General
    Replies:
    0
    Views:
    110
    Andrew Hilton
    Jan 18, 2004
Loading...

Share This Page