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. Sending mail with SMTP MAIL

Sending mail with SMTP MAIL

Scheduled Pinned Locked Moved ASP.NET
asp-netsysadminquestion
4 Posts 4 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.
  • B Offline
    B Offline
    BECK7
    wrote on last edited by
    #1

    Hi, im using an smtp mail object to send mails from an application installed in a server. what kind of permission does my server needs to send mails? i went to Computer Management/Local Users and groups/Groups/Administrators and setted the ASPNET as admnistrator, but i dont like this, cause i think its not save or secure. What kind i do? what kind of permissions i need to set to my server so it works? or what kind of permissiones i need to set to ASPNET so it works? THANK U! My code: using System.Web.Mail; System.Web.Mail.MailMessage oMensaje = new System.Web.Mail.MailMessage(); oMessage.Subject= ... oMessage.To = .. etc.. SmtpMail.Send(oMensaje); I received this message: Access Denied.

    M F V 3 Replies Last reply
    0
    • B BECK7

      Hi, im using an smtp mail object to send mails from an application installed in a server. what kind of permission does my server needs to send mails? i went to Computer Management/Local Users and groups/Groups/Administrators and setted the ASPNET as admnistrator, but i dont like this, cause i think its not save or secure. What kind i do? what kind of permissions i need to set to my server so it works? or what kind of permissiones i need to set to ASPNET so it works? THANK U! My code: using System.Web.Mail; System.Web.Mail.MailMessage oMensaje = new System.Web.Mail.MailMessage(); oMessage.Subject= ... oMessage.To = .. etc.. SmtpMail.Send(oMensaje); I received this message: Access Denied.

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

      Hi there, You might want to check out some links: http://www.systemwebmail.com/faq/3.8.aspx[^] http://www.systemwebmail.com/[^]

      1 Reply Last reply
      0
      • B BECK7

        Hi, im using an smtp mail object to send mails from an application installed in a server. what kind of permission does my server needs to send mails? i went to Computer Management/Local Users and groups/Groups/Administrators and setted the ASPNET as admnistrator, but i dont like this, cause i think its not save or secure. What kind i do? what kind of permissions i need to set to my server so it works? or what kind of permissiones i need to set to ASPNET so it works? THANK U! My code: using System.Web.Mail; System.Web.Mail.MailMessage oMensaje = new System.Web.Mail.MailMessage(); oMessage.Subject= ... oMessage.To = .. etc.. SmtpMail.Send(oMensaje); I received this message: Access Denied.

        F Offline
        F Offline
        fadil1977
        wrote on last edited by
        #3

        look at the code that i used in my website http://www.fadilalnassar.com/Resources/sendEmail.aspx[^] Kind Regards Fadil Alnassar

        1 Reply Last reply
        0
        • B BECK7

          Hi, im using an smtp mail object to send mails from an application installed in a server. what kind of permission does my server needs to send mails? i went to Computer Management/Local Users and groups/Groups/Administrators and setted the ASPNET as admnistrator, but i dont like this, cause i think its not save or secure. What kind i do? what kind of permissions i need to set to my server so it works? or what kind of permissiones i need to set to ASPNET so it works? THANK U! My code: using System.Web.Mail; System.Web.Mail.MailMessage oMensaje = new System.Web.Mail.MailMessage(); oMessage.Subject= ... oMessage.To = .. etc.. SmtpMail.Send(oMensaje); I received this message: Access Denied.

          V Offline
          V Offline
          vijaygone
          wrote on last edited by
          #4

          Inorder to send mails you need to give username and passowrd of the mail domain. ex: mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername",ConfigurationSettings.AppSettings\["SMTPUSERNAME"]); mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword",ConfigurationSettings.AppSettings\["SMTPPASSWORD"]);

          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