Sending mail with SMTP MAIL
-
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.
-
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.
Hi there, You might want to check out some links: http://www.systemwebmail.com/faq/3.8.aspx[^] http://www.systemwebmail.com/[^]
-
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.
-
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.
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"]);