posts - 31, comments - 88, trackbacks - 0

My Links

News

Archives

Post Categories

February 2011 Entries

Send Multiple InMemory Attachments Using FileUpload Controls
I wanted to give users an ability to send multiple attachments from the web application. I did not want anything fancy, just a few FileUpload controls on the page and then send the email. So I dropped five FileUpload controls on the web page and created a function to send email with multiple attachments. Here’s the code: public static void SendMail(string fromAddress, string toAddress, string subject, string body, HttpFileCollection fileCollection) { // CREATE THE MailMessage OBJECT MailMessage mail...

Posted On Wednesday, February 09, 2011 10:16 AM | Feedback (1) | Filed Under [ C# ASP.NET ]

Powered by: