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. CDONTS and ASP.NET

CDONTS and ASP.NET

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-net
4 Posts 3 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
    Asim N
    wrote on last edited by
    #1

    Hello, Question is : Can i use CDONTS for sending email in ASP.NET ? Regards, Asim

    V 1 Reply Last reply
    0
    • A Asim N

      Hello, Question is : Can i use CDONTS for sending email in ASP.NET ? Regards, Asim

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      I think System.Web.Mail namespace is in fact a wrapper on CDOSYS.DLL Deepak Kumar Vasudevan Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/

      A 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        I think System.Web.Mail namespace is in fact a wrapper on CDOSYS.DLL Deepak Kumar Vasudevan Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/

        A Offline
        A Offline
        Asim N
        wrote on last edited by
        #3

        Your are right but what on CDONTS ? we can use it in asp, but can we in asp.net ? Regards, Asim

        M 1 Reply Last reply
        0
        • A Asim N

          Your are right but what on CDONTS ? we can use it in asp, but can we in asp.net ? Regards, Asim

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          Hi there, Yes, you can use CDONTS to send the email in an ASP.NET application, what you need to do is to add a reference to the library cdonts.dll in VS, and VS automatically generates the interop Interop.CDONTS.dll for you, or you can also do that manually:

          CDONTS.NewMail mail = new CDONTS.NewMailClass();
          mail.Send("minh@intello.com", "minh@intello.com", "Subject", "Body", 0);
          mail = null;

          Perhaps, you have a good reason to keep using CDONTS in an ASP.NET application as the System.Web.Mail is normally used to implement the email sending functionality.

          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