ASP.net handle incoming emails in VB.net

Hi

I have worked out how to send an email from a website using VB.net code.
Now I need to manipulate replies to these emails using VB.net code.
How is this done? Code examples? Thanks
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
You are aware that replies are going to go (provided you put in a valid address) to your email server, and not back to the web page, correct? Are you wanting to write a Windows service or some unattended application which will retrieve new emails from your email server?
0
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Yes I am aware of that and that is exactly what I want to do: retrieve emails from the server
0
käµfm³d 👽Commented:
Does your email server support either  POP(3) or IMAP?
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
I think POP3
I send mesages using the following code. My Web.Config also contains the markup below

    Public Sub SendMailMessage(ByVal from As String, ByVal recepient As String, ByVal bcc As String, ByVal cc As String, ByVal subject As String, ByVal body As String)

        Try
            ' Instantiate a new instance of MailMessage
            Dim mMailMessage As New MailMessage()

            ' Set the sender address of the mail message
            mMailMessage.From = New MailAddress(from)
            ' Set the recepient address of the mail message
            mMailMessage.To.Add(New MailAddress(recepient))

            ' Check if the bcc value is nothing or an empty string
            If Not bcc Is Nothing And bcc <> String.Empty Then
                ' Set the Bcc address of the mail message
                mMailMessage.Bcc.Add(New MailAddress(bcc))
            End If

            ' Check if the cc value is nothing or an empty value
            If Not cc Is Nothing And cc <> String.Empty Then
                ' Set the CC address of the mail message
                mMailMessage.CC.Add(New MailAddress(cc))
            End If

            ' Set the subject of the mail message
            mMailMessage.Subject = subject
            ' Set the body of the mail message
            mMailMessage.Body = body

            ' Set the format of the mail message body as HTML
            mMailMessage.IsBodyHtml = True
            ' Set the priority of the mail message to normal
            mMailMessage.Priority = MailPriority.Normal

            'Dim Attach As Attachment = New Attachment(System.Web.HttpContext.Current.Server.MapPath("~/Temp/") & AttachFileName)

            'mMailMessage.Attachments.Add(Attach)

            ' Instantiate a new instance of SmtpClient
            Dim mSmtpClient As New SmtpClient()
            ' Send the mail message
            mSmtpClient.Send(mMailMessage)

        Catch ex As Exception
            Me.Label_Error.Text = ex.Message
        End Try
    End Sub

  <!-- Email **** Add the email settings to the <system.net> element -->
  <system.net>
    <mailSettings>
      <smtp from="info@smssend.co.za">
        <network host="localhost" port="25" userName="info@smssend.co.za" password="xer"/>
      </smtp>
    </mailSettings>
  </system.net>
  <!-- Email **** Add the email settings to the <system.net> element -->
0
käµfm³d 👽Commented:
Sure...   SMTP is pretty much the standard for sending mail, but you use either POP or IMAP (or proprietary protocols depending) to retrieve email from a server. Here are a few POP3 projects that may get you started:

http://www.codeproject.com/KB/IP/despop3client.aspx
http://www.codeproject.com/KB/IP/popapp.aspx
http://www.developerfusion.com/article/4071/how-to-pop3-in-c/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
thanks very much
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.