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. how do I send email from Asp.net?

how do I send email from Asp.net?

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharpasp-netwindows-admin
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.
  • S Offline
    S Offline
    spazzman
    wrote on last edited by
    #1

    I need to send an email from an asp.net page. The problem is Microsoft have locked down permissions for SMTP and the process controlling IIS doesn't have permission to send mail. The error code I get is 0x80040220. If I run exactly the same code from a Win32 app, the email gets sent without any problems. Does anyone know a way around this? Ideally the solution is something I can set in my code - it will make it easier for the end users of my asp app. many thanks

    R 1 Reply Last reply
    0
    • S spazzman

      I need to send an email from an asp.net page. The problem is Microsoft have locked down permissions for SMTP and the process controlling IIS doesn't have permission to send mail. The error code I get is 0x80040220. If I run exactly the same code from a Win32 app, the email gets sent without any problems. Does anyone know a way around this? Ideally the solution is something I can set in my code - it will make it easier for the end users of my asp app. many thanks

      R Offline
      R Offline
      Rocky Moore
      wrote on last edited by
      #2

      I personally do not use the built in email. It is too dependant on being configured properly on the deployment server and I do not see a method to use password authenticated SMTP. So, with all my sites I always use OpenSMTP: http://sourceforge.net/projects/opensmtp-net/[^] They have quite a few examples. Easy to use, just include the library. Rocky <>< www.HintsAndTips.com www.MyQuickPoll.com - 2004 Election poll is #33 www.GotTheAnswerToSpam.com

      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