Click here to Skip to main content
15,903,540 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 5:32
mvePIEBALDconsult6-Dec-10 5:32 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 5:46
musefan6-Dec-10 5:46 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 5:57
mvePIEBALDconsult6-Dec-10 5:57 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 6:08
musefan6-Dec-10 6:08 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 6:22
mvePIEBALDconsult6-Dec-10 6:22 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 6:39
musefan6-Dec-10 6:39 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 7:21
mvePIEBALDconsult6-Dec-10 7:21 
AnswerRe: Sending attachments with SMTP Client Pin
Luc Pattyn6-Dec-10 4:16
sitebuilderLuc Pattyn6-Dec-10 4:16 
I had the same experience; my guess is the attachment files remain locked by the mail system until it is done sending them. Your code is not to blame for any of that. Solutions would be to create:
- an attachment from the file contents;
- an attachment form a stream, as you did;
- a copy of the file (leaving even more garbage on the file system).

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.


GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 4:26
mvePIEBALDconsult6-Dec-10 4:26 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 4:41
musefan6-Dec-10 4:41 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 4:58
mvePIEBALDconsult6-Dec-10 4:58 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 5:08
musefan6-Dec-10 5:08 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 6:18
mvePIEBALDconsult6-Dec-10 6:18 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 6:38
musefan6-Dec-10 6:38 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 7:25
mvePIEBALDconsult6-Dec-10 7:25 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 4:28
musefan6-Dec-10 4:28 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 4:42
mvePIEBALDconsult6-Dec-10 4:42 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 4:55
musefan6-Dec-10 4:55 
GeneralRe: Sending attachments with SMTP Client Pin
Luc Pattyn6-Dec-10 5:00
sitebuilderLuc Pattyn6-Dec-10 5:00 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 5:12
musefan6-Dec-10 5:12 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 5:40
mvePIEBALDconsult6-Dec-10 5:40 
AnswerRe: Sending attachments with SMTP Client Pin
db7uk6-Dec-10 23:16
db7uk6-Dec-10 23:16 
GeneralRe: Sending attachments with SMTP Client Pin
Richard Deeming7-Dec-10 8:36
mveRichard Deeming7-Dec-10 8:36 
AnswerRe: Sending attachments with SMTP Client Pin
englebart7-Dec-10 4:06
professionalenglebart7-Dec-10 4:06 
GeneralRe: Sending attachments with SMTP Client Pin
musefan7-Dec-10 4:26
musefan7-Dec-10 4:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.