Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Attachements for SMTP mail

Thread Tools

Attachements for SMTP mail

Posts: n/a
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.

Neal Rogers
University of Cape Town
Reply With Quote
Posts: n/a
mailNew.Attachments.Add(new MailAttachment("c:\\temp\\test.pdf"));

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending SMTP mail when SMTP server is unavailable Java 3 01-24-2006 06:53 PM
Controlling attachements Firefox 2 12-02-2005 05:08 AM
Sample for supporting file attachements Ryan ASP .Net 4 12-21-2004 06:37 PM
sending of mail (smtp) - connection refused - but smtp server isrunning! Alex Hunsley Python 4 06-29-2004 04:30 PM
RE: sending of mail (smtp) - connection refused - but smtp serveris running! Raaijmakers, Vincent \(GE Infrastructure\) Python 0 06-29-2004 02:38 PM