Click here to Skip to main content
12,948,566 members (61,709 online)
Rate this:
Please Sign up or sign in to vote.
See more:
hello my friend Iwant help me in program and code for recive email message in my program all message in my email download in my program while iconnect to enternet
looklike microsoft outlook iprefer program in
Posted 30-Jul-12 19:38pm
Updated 30-Jul-12 19:41pm
There is no such thing as just "receive e-mail message". There are different mailbox services working with different protocols. You need to get familiar with that stuff and know what do you have in your case. As for now, this question makes no sense.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using your subject as the search term gave over 1 million results: Google[^]
The top three results had two full solutions:
Send (SMTP) and Receive (POP3) Email with Ease under VB.NET[^]
How To Receive Email's[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can try this one, it is about creating POP3 client from scratch without any 3rd parties Libraries.[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

I Think That This Will Be HelpFull
Imports System.Net.Mail
Public Class Form1
    Public Sub SendEmail()
        Dim client As New SmtpClient()
        Dim sendTo As New MailAddress("")
        Dim from As MailAddress = New MailAddress("")
        Dim message As New MailMessage(from, sendTo)
        message.IsBodyHtml = True
        message.Subject = Form1.TextBox1.Text
        message.Body = Form1.RichTextBox1.Text
        Dim basicAuthenticationInfo As New System.Net.NetworkCredential("your username", "your password")
        client.Host = ""
        client.UseDefaultCredentials = False
        client.Credentials = basicAuthenticationInfo
        client.EnableSsl = True
            MsgBox("Message Sent!")
        Catch ex As Exception
            MsgBox("Message not sent.")
        End Try
    End Sub
End Class
Wes Aday 14-Jul-14 17:16pm
Might have been helpful if:
It were 2 years ago when the non question was asked. And,
he asked about receiving email, not sending email.
nilesh sawardekar 16-Jul-14 2:34am
try to understand what he want.. why your giving him code for sending mail.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,419
CHill60 3,275
Maciej Los 2,778
Jochen Arndt 1,935
ppolymorphe 1,795

Advertise | Privacy | Mobile
Web02 | 2.8.170524.1 | Last Updated 14 Jul 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100