Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 vb.net
thank
*****@gmail.com
Posted 30-Jul-12 19:38pm
Edited 30-Jul-12 19:41pm
v2
Comments
Sergey Alexandrovich Kryukov at 31-Jul-12 1:52am
   
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.
--SA
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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.
http://evry1falls.freevar.com/VBNet/VS2010DataBaseBook/vbnetpop4.html[^]
  Permalink  
Rate this: bad
good
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("Send.to@gmail.com")
        Dim from As MailAddress = New MailAddress("Send.From@gmail.com")
        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 = "smtp.gmail.com"
        client.UseDefaultCredentials = False
        client.Credentials = basicAuthenticationInfo
        client.EnableSsl = True
        Try
            client.Send(message)
            MsgBox("Message Sent!")
        Catch ex As Exception
            MsgBox("Message not sent.")
        End Try
        Me.Hide()
 
    End Sub
End Class
  Permalink  
Comments
Wes Aday at 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 at 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
0 Sergey Alexandrovich Kryukov 566
1 OriginalGriff 345
2 CPallini 200
3 PIEBALDconsult 150
4 Magic Wonder 131
0 OriginalGriff 5,795
1 Sergey Alexandrovich Kryukov 5,028
2 CPallini 4,700
3 George Jonsson 3,142
4 Gihan Liyanage 2,450


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 14 Jul 2014
Copyright © CodeProject, 1999-2014
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