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. Error sending mails

Error sending mails

Scheduled Pinned Locked Moved ASP.NET
help
2 Posts 2 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
    abulhassan_shock
    wrote on last edited by
    #1

    i was using the below code to send the mail. Dim mm As New MailMessage With mm .To = ToId .From = FromId .Body = Content End With SmtpMail.SmtpServer = "192.168.0.222" SmtpMail.Send(mm) for the first half hour it was working properly. After this an error message is coming, " Could not access 'CDO.Message' object. " Please help me to solve this

    hello

    C 1 Reply Last reply
    0
    • A abulhassan_shock

      i was using the below code to send the mail. Dim mm As New MailMessage With mm .To = ToId .From = FromId .Body = Content End With SmtpMail.SmtpServer = "192.168.0.222" SmtpMail.Send(mm) for the first half hour it was working properly. After this an error message is coming, " Could not access 'CDO.Message' object. " Please help me to solve this

      hello

      C Offline
      C Offline
      coolestCoder
      wrote on last edited by
      #2

      Hi, Please check that the CDO is properly registered on your system. For that you will have to re-install cdosys.dll and cdonts.dll. First uninstall cdosys.dll and cdonts.dll from you system using these commands.- RegSvr32 "path to cdosys.dll" /u RegSvr32 "path to cdonts.dll" /u Then install them back by. Run the RegSvr32 "path to cdosys.dll" and RegSvr32 "path to cdonts.dll". These files usually reside in your System32 directory under the windows root directory. You can use the command prompt to issue these commands. hope this solves your problem.


      "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


      coolestCoder

      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