Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Attachements for SMTP mail

 
 
=?Utf-8?B?TmVhbA==?=
Guest
Posts: n/a
 
      08-29-2005
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
 
Reply With Quote
 
 
 
 
Stefan
Guest
Posts: n/a
 
      08-29-2005
mailNew.Attachments.Add(new MailAttachment("c:\\temp\\test.pdf"));

 
Reply With Quote
 
 
 
Reply

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 matthewjbarr@gmail.com Java 3 01-24-2006 06:53 PM
Controlling attachements hxbarney@cap.rr.com 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



Advertisments