Click here to Skip to main content
15,914,066 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 4:15
musefan6-Dec-10 4:15 
AnswerRe: Sending attachments with SMTP Client [modified] Pin
PIEBALDconsult6-Dec-10 4:16
mvePIEBALDconsult6-Dec-10 4:16 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 4:20
musefan6-Dec-10 4:20 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 4:24
mvePIEBALDconsult6-Dec-10 4:24 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 4:30
musefan6-Dec-10 4:30 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 4:40
mvePIEBALDconsult6-Dec-10 4:40 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 4:57
musefan6-Dec-10 4:57 
GeneralRe: Sending attachments with SMTP Client Pin
PIEBALDconsult6-Dec-10 5:32
mvePIEBALDconsult6-Dec-10 5:32 
You don't want your code crash the email server if you can help it. (Been there, done that. Blush | :O )


I prefer a more general solution whenever I can find one. I don't follow YAGNI -- I always stop to think, "How can this come back to bite me on the backside? I can't foresee all possible problems, but what steps can I take now to alleviate the future problems that I can foresee?"

Also, its easier to allow for very large files today than it will be in a few months.

And if the files are very small, why attach them? Why not use them as the message text?


On the other hand... why not avoid the files entirely? Generate the "file" in memory, store it in the database, read it from there, attach it, and then delete the record. Maybe have the delete postponed until after a database backup.
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 
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 

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.