Geeks With Blogs
Mayank Sharma 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 9, 2011 10:16 AM

Copyright © bullpit | Powered by: GeeksWithBlogs.net