Alex Rivera | Logout

How can I save an email instead of sending when using SmtpClient?

Asked 2009-02-19T23:49:45.353
52

I am using SmtpClient to send an email with an attachment. However for a certain batch we need to somehow save the MailMessage instead of sending them. We are then thinking/hoping to manually upload the messages to the users drafts folder.

Is it possible to save these messages with the attachment intact (impossible, I would have thought). Or alternatively upload the messages to a folder in the users account?

If anyone has any experience of this, I'd much appreciate a bit of help or a pointer.

Edit
Report

1 Answer

7

This can help - Adding Save() functionality to Microsoft.Net.Mail.MailMessage
The main ideia, make an extension to MailMessage ,that by reflection making a save method.

answered 2009-02-20T00:14:38.117

Your Answer