Click here to Skip to main content
15,916,693 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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
Posted
Comments
anushripatil 6-Jan-12 2:11am    
check this:
http://revenmerchantservices.com/page/Read-pop3-email-attachments-component.aspx
if using WebDAV
http://forums.thedailywtf.com/forums/t/4566.aspx
honey4bee 9-Jan-12 4:04am    
Hi anushripatil
by using the first link which was given by you, getting the error
in parseValue()function

1 solution

 
Share this answer
 
v2
Comments
honey4bee 9-Jan-12 4:14am    
hi emad_hawaree,

attachments downloading or reading is not exist in that first link,

and the second link i already tried,
but i got the error in that second link
in the parsevalue(...) function.
I noticed the error for this following line

txtResponse.Text = tcpclient.SendCommand("RETR " + m.Value.Replace("OK", ""));

after executing above line i checked the context in txtResponse.Text then no data got that text box.
if u tried this tell me what is the problem in that code...

Regards
Honey

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900