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. General Programming
  3. C#
  4. How do you send an email message?

How do you send an email message?

Scheduled Pinned Locked Moved C#
csharpdatabasequestion
7 Posts 6 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.
  • D Offline
    D Offline
    David Flores
    wrote on last edited by
    #1

    How do you send an email message using C# WITHOUT using System.Web.Mail namespace? I have a windows service that does some monitoring and I want it to send out an email after some trigger. Thanks in advance, David P.S. AGAIN...WITHOUT USING THE SYSTEM.WEB.MAIL NAMESPACE!!!!!!

    D L H H D 5 Replies Last reply
    0
    • D David Flores

      How do you send an email message using C# WITHOUT using System.Web.Mail namespace? I have a windows service that does some monitoring and I want it to send out an email after some trigger. Thanks in advance, David P.S. AGAIN...WITHOUT USING THE SYSTEM.WEB.MAIL NAMESPACE!!!!!!

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      You can send email using C# WITHOUT SYSTEM.WEB.MAIL NAMESPACE, using SMTP, there are plenty of samples here in CP. P.S. AGAIN...WITHOUT USING THE SYSTEM.WEB.MAIL NAMESPACE!!!!!! My latest articles: Desktop Bob - Instant CP notifications XOR tricks for RAID data protection

      P 1 Reply Last reply
      0
      • D Daniel Turini

        You can send email using C# WITHOUT SYSTEM.WEB.MAIL NAMESPACE, using SMTP, there are plenty of samples here in CP. P.S. AGAIN...WITHOUT USING THE SYSTEM.WEB.MAIL NAMESPACE!!!!!! My latest articles: Desktop Bob - Instant CP notifications XOR tricks for RAID data protection

        P Offline
        P Offline
        Pete Bassett
        wrote on last edited by
        #3

        :laugh:

        1 Reply Last reply
        0
        • D David Flores

          How do you send an email message using C# WITHOUT using System.Web.Mail namespace? I have a windows service that does some monitoring and I want it to send out an email after some trigger. Thanks in advance, David P.S. AGAIN...WITHOUT USING THE SYSTEM.WEB.MAIL NAMESPACE!!!!!!

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          OpenSmtp on SourceForge does a nice job and it works on all Win platforms and it does NOT use THE SYSTEM.WEB.MAIL NAMESPACE!!!!!! :) Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.

          1 Reply Last reply
          0
          • D David Flores

            How do you send an email message using C# WITHOUT using System.Web.Mail namespace? I have a windows service that does some monitoring and I want it to send out an email after some trigger. Thanks in advance, David P.S. AGAIN...WITHOUT USING THE SYSTEM.WEB.MAIL NAMESPACE!!!!!!

            H Offline
            H Offline
            Hugh Jass
            wrote on last edited by
            #5

            Have you tried System.Web.Mail? PS - If that doesn't work, try System.Web.Mail.

            1 Reply Last reply
            0
            • D David Flores

              How do you send an email message using C# WITHOUT using System.Web.Mail namespace? I have a windows service that does some monitoring and I want it to send out an email after some trigger. Thanks in advance, David P.S. AGAIN...WITHOUT USING THE SYSTEM.WEB.MAIL NAMESPACE!!!!!!

              H Offline
              H Offline
              Hakan Eskici
              wrote on last edited by
              #6

              You need to use sockets library to initiate a tcp/ip connection over port 25 and supply the necessary SMTP commands to send an email. This requires an SMTP server though. It shouldn't be hard to code a simple email sending application but if you would like to use features like mime emails, attachments etc, you'll need an emailing component like devMail.Net- http://www.devmail.net[^] Hakan :suss:

              1 Reply Last reply
              0
              • D David Flores

                How do you send an email message using C# WITHOUT using System.Web.Mail namespace? I have a windows service that does some monitoring and I want it to send out an email after some trigger. Thanks in advance, David P.S. AGAIN...WITHOUT USING THE SYSTEM.WEB.MAIL NAMESPACE!!!!!!

                D Offline
                D Offline
                David Flores
                wrote on last edited by
                #7

                I didnt mean for my post to stir up so many flames, I just wanted to make sure that I didnt get responses saying to use the system.web.mail namespace as I did in previous postings. Thanks for the commerical suggestions. I did find the following: http://www.c-sharpcorner.com/internet/simpleSMTPMailer.asp

                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