Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Email Receiving and Sending complete code in asp.net using C#

Email Receiving and Sending complete code in asp.net using C#

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abid Hussain Abid
    wrote on last edited by
    #1

    i want to complete Email Receiving and Sending for web application complete code in asp.net using C# ..... plzzzzzzzzzzzzzzzzzzzzzzzzzzzz

    R S M 3 Replies Last reply
    0
    • A Abid Hussain Abid

      i want to complete Email Receiving and Sending for web application complete code in asp.net using C# ..... plzzzzzzzzzzzzzzzzzzzzzzzzzzzz

      R Offline
      R Offline
      Rockstar_
      wrote on last edited by
      #2

      HI this only sending.. using System; using System.Web.Mail; using System.Data; using System.Configuration; using System.Data.SqlClient; namespace Utility { public class Email { public string sendTo = string.Empty; public string sendFrom = string.Empty; public string sendSubject = string.Empty; public string onlineResLibUserName = string.Empty; public string onlineResLibPassword = string.Empty; public string sendBody = string.Empty; public string MessageTemplate = string.Empty; public string sendCC = string.Empty; public string sendBCC = string.Empty; public void SendMail(string mailFor) { Displathmail(); } private void dispatchMail() { MailMessage mailMessage = null; try { mailMessage = new MailMessage(); mailMessage.BodyFormat = MailFormat.Html; mailMessage.Subject = "Local:" +sendSubject; mailMessage.From = sendFrom; mailMessage.Body = sendBody; //mailMessage.To = sendTo; mailMessage.To = "opmbugs@gmail.com"; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(mailMessage); } catch (Exception err) { throw err; } } } }

      1 Reply Last reply
      0
      • A Abid Hussain Abid

        i want to complete Email Receiving and Sending for web application complete code in asp.net using C# ..... plzzzzzzzzzzzzzzzzzzzzzzzzzzzz

        S Offline
        S Offline
        Sandeep Mewara
        wrote on last edited by
        #3

        It does not work like this here. Here is what is expected of enquirers: 1. TRY first what you want to do! You may find that it's not that hard. 2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues. Members will be more than happy to help like this.

        Sandeep Mewara Microsoft ASP.NET MVP 2012 & 2013 [My Blog]: Sandeep Mewara's Tech Journal! [My Latest Article]: HTML5 Quick Start Web Application

        A 1 Reply Last reply
        0
        • S Sandeep Mewara

          It does not work like this here. Here is what is expected of enquirers: 1. TRY first what you want to do! You may find that it's not that hard. 2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues. Members will be more than happy to help like this.

          Sandeep Mewara Microsoft ASP.NET MVP 2012 & 2013 [My Blog]: Sandeep Mewara's Tech Journal! [My Latest Article]: HTML5 Quick Start Web Application

          A Offline
          A Offline
          Abid Hussain Abid
          wrote on last edited by
          #4

          Brother whenever i search about mailing system in vs 2010 asp.net using C# i just find only sending email system but i want complete mailing system in my web application using smtp host gmail .. or any othera... please brother .....

          L 1 Reply Last reply
          0
          • A Abid Hussain Abid

            Brother whenever i search about mailing system in vs 2010 asp.net using C# i just find only sending email system but i want complete mailing system in my web application using smtp host gmail .. or any othera... please brother .....

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Sending is easy as you see, but receiving is much more work and you need to study the SMTP RFC[^].

            Use the best guess

            1 Reply Last reply
            0
            • A Abid Hussain Abid

              i want to complete Email Receiving and Sending for web application complete code in asp.net using C# ..... plzzzzzzzzzzzzzzzzzzzzzzzzzzzz

              M Offline
              M Offline
              Marco Bertschi
              wrote on last edited by
              #6

              Abid Hussain-(Abid) wrote:

              plzzzzzzzzzzzzzzzzzzzzzzzzzzzzplease

              FTFY However there are plenty of tutorials and examples around here: How to send mail to someone in windows mobile...?[^] error cannot implicitly convert type 'string' to System.Net.Mail.MailAddressCollection[^]

              cheers Marco Bertschi


              Software Developer Twitter | Facebook | Articles


              You have absolutely no idea how glad I am that I have no idea at all. - OriginalGriff

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups