मैं पॉप 3 के माध्यम से ईमेल पढ़ना चाहता हूं। मेरे एएसपीनेट वेब पेज पर मुझे कैसे जाना है,एएसपीनेट वेब पेज पर पॉप 3 क्लाइंट का उपयोग करके ईमेल पढ़ें
मुझे ईमेल दिखाने के लिए किस नियंत्रण का उपयोग करना चाहिए?
मैं पॉप 3 के माध्यम से ईमेल पढ़ना चाहता हूं। मेरे एएसपीनेट वेब पेज पर मुझे कैसे जाना है,एएसपीनेट वेब पेज पर पॉप 3 क्लाइंट का उपयोग करके ईमेल पढ़ें
मुझे ईमेल दिखाने के लिए किस नियंत्रण का उपयोग करना चाहिए?
यहाँ आप एक POP3 सर्वर से संदेश प्राप्त करने के लिए अनुमति पुस्तकालयों के एक जोड़े हैं:
Dim pop3Client As Pop3Client
Dim i As Integer =1
pop3Client = New Pop3Client
pop3Client.Connect("pop.gmail.com", 995, True)
pop3Client.Authenticate("[email protected]", "mypassword")
Dim inbox_count As Integer = pop3Client.GetMessageCount
Do While (inbox_count >= i)
Dim message As Message = pop3Client.GetMessage(i)
Dim messagePart As MessagePart = message.MessagePart.MessageParts(0)
messagePart.BodyEncoding.GetString(messagePart.Body)'give you message body
message.Headers.From.Address'give you from address
message.Headers.DateSent'date of mail send
message.Headers.Subject'subject of the mail
i= i + 1
Loop
इस उत्तर के लिए उपयोगी होने के लिए, आपको लोगों को यह कहना होगा कि "पॉप 3 क्लाइंट" कहां से आता है, क्योंकि यह मानक एएसपी नहीं है .NET कक्षा। –
@ डारिन डिमिट्रोव, क्या आप मुझे विशिष्ट कोड या यूआरएल दे सकते हैं? मुझे www.pageflakes.com (ईमेल विजेट) की तरह चाहिए – leton
ओपनपॉप ने मेरे लिए वास्तव में अच्छा काम किया –