Click here to Skip to main content
15,914,066 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: .NET Pin
Dave Kreskowiak27-Jan-06 4:56
mveDave Kreskowiak27-Jan-06 4:56 
Question.Net Framework Pin
Net-Programer-and-developer27-Jan-06 3:13
Net-Programer-and-developer27-Jan-06 3:13 
AnswerRe: .Net Framework Pin
Kevin McFarlane27-Jan-06 3:36
Kevin McFarlane27-Jan-06 3:36 
AnswerRe: .Net Framework Pin
Dave Kreskowiak27-Jan-06 4:52
mveDave Kreskowiak27-Jan-06 4:52 
GeneralRe: .Net Framework Pin
Paul Conrad27-Jan-06 5:23
professionalPaul Conrad27-Jan-06 5:23 
AnswerRe: .Net Framework Pin
Colin Angus Mackay27-Jan-06 5:50
Colin Angus Mackay27-Jan-06 5:50 
AnswerRe: .Net Framework Pin
Ravi Bhavnani27-Jan-06 11:25
professionalRavi Bhavnani27-Jan-06 11:25 
QuestionSending mails with attachments curiosity Pin
Alsvha27-Jan-06 2:14
Alsvha27-Jan-06 2:14 
Greetings all.

I've made an e-mail module for a client where they can send e-mails with attachments to their clients.
To minimize against faulty entered e-mails I've made some functionality which removes e-mail adresses which are rejected by the server (error 550).
However, then I found something strange.

When ever I try to send an e-mail, the attachments get cleared, meaning that my recovery functionality will remove 550-faulty addresses and resend the e-mail but this time withouth the attachment.
I've found that if I send the mail successfully - the attachment is also removed after the send.

I'm using a wrapper-class around System.Web.Mail namespace and using smtp.mail.send(mailobject) to send the e-mail. There is not much to this wrapper class except some functionality to check whether recipient(s) and sender have been added.
Attachments get added by: "myMailObject.Attachments.Add(New MailAttachment(fileName))"


Now - to make the short story longer ....
Is this "clearing" of attachments inherit .net behaviour? Or would the problem lay elsewhere?

Regards


---------------------------
127.0.0.1 - Sweet 127.0.0.1
AnswerRe: Sending mails with attachments curiosity Pin
Dave Kreskowiak27-Jan-06 4:51
mveDave Kreskowiak27-Jan-06 4:51 
GeneralRe: Sending mails with attachments curiosity Pin
Alsvha27-Jan-06 5:04
Alsvha27-Jan-06 5:04 
GeneralRe: Sending mails with attachments curiosity Pin
Dave Kreskowiak27-Jan-06 5:48
mveDave Kreskowiak27-Jan-06 5:48 
GeneralRe: Sending mails with attachments curiosity Pin
Alsvha29-Jan-06 21:54
Alsvha29-Jan-06 21:54 
QuestionString compressing with System.IO.Compression Pin
MrBean27-Jan-06 1:55
MrBean27-Jan-06 1:55 
AnswerRe: String compressing with System.IO.Compression Pin
Dave Kreskowiak27-Jan-06 4:49
mveDave Kreskowiak27-Jan-06 4:49 
GeneralRe: String compressing with System.IO.Compression Pin
MrBean27-Jan-06 5:28
MrBean27-Jan-06 5:28 
GeneralRe: String compressing with System.IO.Compression Pin
Dave Kreskowiak27-Jan-06 6:37
mveDave Kreskowiak27-Jan-06 6:37 
GeneralRe: String compressing with System.IO.Compression Pin
MrBean27-Jan-06 7:06
MrBean27-Jan-06 7:06 
GeneralRe: String compressing with System.IO.Compression Pin
Dave Kreskowiak27-Jan-06 8:22
mveDave Kreskowiak27-Jan-06 8:22 
GeneralRe: String compressing with System.IO.Compression Pin
MrBean29-Jan-06 21:11
MrBean29-Jan-06 21:11 
GeneralRe: String compressing with System.IO.Compression Pin
Darell F. Butch Jr.2-Feb-06 2:04
Darell F. Butch Jr.2-Feb-06 2:04 
GeneralRe: String compressing with System.IO.Compression Pin
MrBean6-Feb-06 4:12
MrBean6-Feb-06 4:12 
Questionadding Microsoft common dialog control Pin
raj kumar reddy27-Jan-06 0:04
raj kumar reddy27-Jan-06 0:04 
AnswerRe: adding Microsoft common dialog control Pin
Dave Kreskowiak27-Jan-06 4:40
mveDave Kreskowiak27-Jan-06 4:40 
QuestionPrintPreviewDialog Control Pin
Mo_developer26-Jan-06 22:26
Mo_developer26-Jan-06 22:26 
QuestionParent Control's Callback Priority Pin
IMinusMinus26-Jan-06 14:20
IMinusMinus26-Jan-06 14:20 

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.