Attachements for SMTP mail

Discussion in 'ASP .Net' started by =?Utf-8?B?TmVhbA==?=, Aug 29, 2005.

  1. Hi All

    When adding an attachement to a mailmessage
    it requires adding a system.object.
    I've tried both files and system.object ,..

    mailNew.Attachments.Add( MySystemObject)

    but it fails with " Invalid Cast " every time.

    Anybody...!?
    TIA
    --
    Neal Rogers
    University of Cape Town
     
    =?Utf-8?B?TmVhbA==?=, Aug 29, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?TmVhbA==?=

    Stefan Guest

    mailNew.Attachments.Add(new MailAttachment("c:\\temp\\test.pdf"));
     
    Stefan, Aug 29, 2005
    #2
    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. Ryan
    Replies:
    4
    Views:
    294
    Curt_C [MVP]
    Dec 21, 2004
  2. Replies:
    3
    Views:
    1,103
    Roedy Green
    Jan 24, 2006
  3. hilz

    OT: converted attachements

    hilz, Mar 3, 2006, in forum: Java
    Replies:
    11
    Views:
    704
  4. Alex Hunsley
    Replies:
    4
    Views:
    3,556
    Tim Williams (gmail)
    Jun 29, 2004
  5. Raaijmakers, Vincent \(GE Infrastructure\)

    RE: sending of mail (smtp) - connection refused - but smtp serveris running!

    Raaijmakers, Vincent \(GE Infrastructure\), Jun 29, 2004, in forum: Python
    Replies:
    0
    Views:
    894
    Raaijmakers, Vincent \(GE Infrastructure\)
    Jun 29, 2004
Loading...

Share This Page