In my application i want to get the mails from mailserver and show in the gridview,
using Pop3 Connection i got the subject,body and fromPerson details but
i didn't get the attachments from mailserver..
How i can get this requirement???
do u have any code sample regarding this or any idea??
if u have help me..
Thanks & Regards
Honey
How can i get the attachments from mail server using POP Connection?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dhaval PatelRank #1,023 · 1.9K reputationPosted Jan 5, 2012, 9:08 PM EST
Dear Honey , Are you try this code for sent Email with Attachments MailMessage mail = new MailMessage(); mail.To = "[email protected]"; mail.From = "[email protected]"; mail.Subject = "this is a test email."; mail.Body = "this is my test email body."; MailAttachment attachment = new MailAttachment( Server.MapPath( "test.txt" ) ); //create the attachment mail.Attachments.Add( attachment );//add the attachment SmtpMail.SmtpServer = "localhost"; //your real server goes here SmtpMail.Send( mail );honey9 reputationPosted Jan 5, 2012, 9:56 PM EST
i want retriving mail attachments not sending mails..
u posted the code is sending the mail with attachment..
but i need retriving the mail with attachment using POP3 Connection..