Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Sending attachments with SMTP Client Pin
musefan6-Dec-10 5:46
musefan6-Dec-10 5:46 
PIEBALDconsult wrote:
You don't want your code crash the email server if you can help it.


If file sizes start to get to large for emailing then we will prevent sending by email and force users to use the FTP option.

PIEBALDconsult wrote:
I don't follow YAGNI


I agree with regards to potential problems down the line. But I am not going to waste time implementing functionality that is not needed.

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


They are data exports. XML files, MDB files - not very usable as just email body content


PIEBALDconsult wrote:
On the other hand... why not avoid the files entirely?


Because one of the file types if MDB then a file must be created on disk

PIEBALDconsult wrote:
Generate the "file" in memory, store it in the database, read it from there, attach it, and then delete the record


Why would I want to create a file in memory, store in DB and then read it straight back into memory?
Life goes very fast. Tomorrow, today is already yesterday.

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 
GeneralRe: Sending attachments with SMTP Client Pin
Luc Pattyn6-Dec-10 5:00
sitebuilderLuc Pattyn6-Dec-10 5:00 

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.