"Server does not support secure connections. " ?
|
| |
|
-
Re: "Server does not support secure connections. " ?
-
215 point Member
- nirman.doshi
- Member since 07-07-2009, 8:07 AM
- Vadodara
- Posts 70
Just do one thing -
Override "SendingMail" event of your Password recovery control.
When you create an instance of SmptClient object, it automatically sets its property from the one we gave in web.config.
So here you will need to write only one statement to disable SSL.
- protected void pwdRec1_SendingMail(object sender, MailMessageEventArgs e)
- {
- System.Net.Mail.SmtpClient _smtp = new System.Net.Mail.SmtpClient();
- _smtp.EnableSsl = false;
- }
This should work.If doesnt pls reply for further assistance
Nirman Doshi
Software Developer
Vadodara, India -
-
Re: "Server does not support secure connections. " ?
-
525 point Member
- oguzkaygun
- Member since 04-27-2008, 8:44 AM
- Posts 1,261
hello
pwdRec1 means that my password recover name ?
- protected void pwdRec1_SendingMail(object sender, MailMessageEventArgs e)
- {
- System.Net.Mail.SmtpClient _smtp = new System.Net.Mail.SmtpClient();
- _smtp.EnableSsl = false;
- }
I also send mail via below code. what should i do for it ?
Dim mm As New mailgonder()
mailgonder.mkonusu = String.Format("{0}{7}{1}{7}{2}{7}{3}{7}{4}{7}{5}{7}{6}", "Sayn " + DetailsView2.Rows(0).Cells(1).Text.Trim(), "Mesaj G”nderen : " + User.Identity.Name.ToString, "šrn No: " + DetailsView3.Rows(0).Cells(1).Text.ToString.Trim(), "˜lan BaŸl§: " + baslikL.Text, mesaj, "Sayglarmzla", ("<a href=""http://www.interaktifilan.com"">www.interaktifilan.com</a>"), "<br /><br />")
mailgonder.yeni = DetailsView7.Rows(2).Cells(1).Text.Trim().ToString
mm.gonderim()
MY CLASS.VB IS BELOW
Public
Class mailgonder
Dim mail As New MailMessage()
'set the addresses
mail.From =
New MailAddress(destek@interaktifilan.com)
mail.[To].Add(yeni)
mail.Subject = "interaktifilan Yeni mesajnz var"
mail.Body = mkonusu
mail.IsBodyHtml =
True
smtp.EnableSsl =
True 'Should i false this line ?
smtp.Port = 25
smtp.Credentials =
New NetworkCredential("*g", "*******")
smtp.Send(mail)
Sub
End
Class
Mark as me if my question or my answer can be helpful for you :) -
-
Re: "Server does not support secure connections. " ?
-
525 point Member
- oguzkaygun
- Member since 04-27-2008, 8:44 AM
- Posts 1,261
hello
i did smtp.enableSSL=false
i have new errot message that The SMTP server requires a secure connection or the client was not authenticated. The server response was: SMTP authentication is required.
What should i do ?
Thanks
Mark as me if my question or my answer can be helpful for you :) -
-
Re: "Server does not support secure connections. " ?
-
525 point Member
- oguzkaygun
- Member since 04-27-2008, 8:44 AM
- Posts 1,261
hi
if we have error that The SMTP server requires a secure connection or the client was not authenticated. The server response was: SMTP authentication is required., we should add below code too at paswordrecovery sendingmail.
smtp.Port = 25
smtp.Credentials = New NetworkCredential("*g", "*******")
Mark as me if my question or my answer can be helpful for you :) -