Does anyone know what the SMTP mail configuration settings are? In the config file that outgoing mail through a form is required in ASP? Thank you.
Check out this link:
I guess the following should be done In the code (about the credentials is not exactly fixed because I do not have an account to test):
MailMessage mail = new mailmace (); similarity. From = new mail address ("fromname@somewhere.com"); Mail.To.Add ("toname@somewhereelse.com"); Mail.Subject = "Topic"; similarity. Body = "body text here"; Mail.IsBodyHtml = True; similarity. Priority = mail priority. High; SmtpClient smtp = New SmtpClient ("smtp.mail.yahoo.com"); Smtp.Port = 465; // it can be 587, not sure that smtp. Credentials = New Network Credentials ("Your YahooId", "YourYahooPassword"); Smtp.EnableSsl = true; // SSL is essential i think smtp.Send (mail); The key is to make sure that you are using SSL and you can send authentication credentials. I do not think you will be able to do SSL only with the web. Configure Mail Settings Please see for more information.
Comments
Post a Comment