Browse Source

Fixed SMTP default connection error

master
Teknikode 7 months ago
parent
commit
77805b0386
  1. 1
      IdentityServer/Controllers/ErrorController.cs
  2. 1
      Logging/Logger.cs
  3. 2
      Teknik/Areas/User/Utility/UserHelper.cs

1
IdentityServer/Controllers/ErrorController.cs

@ -192,7 +192,6 @@ Stack Trace: @@ -192,7 +192,6 @@ Stack Trace:
client.Port = _config.ContactConfig.EmailAccount.Port;
client.EnableSsl = _config.ContactConfig.EmailAccount.SSL;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.UseDefaultCredentials = true;
client.Credentials = new System.Net.NetworkCredential(_config.ContactConfig.EmailAccount.Username, _config.ContactConfig.EmailAccount.Password);
client.Timeout = 5000;

1
Logging/Logger.cs

@ -142,7 +142,6 @@ namespace Teknik.Logging @@ -142,7 +142,6 @@ namespace Teknik.Logging
client.Port = _config.LoggingConfig.SenderAccount.Port;
client.EnableSsl = _config.LoggingConfig.SenderAccount.SSL;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.UseDefaultCredentials = true;
client.Credentials = new System.Net.NetworkCredential(_config.LoggingConfig.SenderAccount.Username, _config.LoggingConfig.SenderAccount.Password);
client.Timeout = 5000;

2
Teknik/Areas/User/Utility/UserHelper.cs

@ -570,7 +570,6 @@ namespace Teknik.Areas.Users.Utility @@ -570,7 +570,6 @@ namespace Teknik.Areas.Users.Utility
client.Port = config.ContactConfig.EmailAccount.Port;
client.EnableSsl = config.ContactConfig.EmailAccount.SSL;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.UseDefaultCredentials = true;
client.Credentials = new NetworkCredential(config.ContactConfig.EmailAccount.Username, config.ContactConfig.EmailAccount.Password);
client.Timeout = 5000;
@ -598,7 +597,6 @@ If you recieved this email and you did not sign up for an account, please email @@ -598,7 +597,6 @@ If you recieved this email and you did not sign up for an account, please email
client.Port = config.ContactConfig.EmailAccount.Port;
client.EnableSsl = config.ContactConfig.EmailAccount.SSL;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.UseDefaultCredentials = true;
client.Credentials = new NetworkCredential(config.ContactConfig.EmailAccount.Username, config.ContactConfig.EmailAccount.Password);
client.Timeout = 5000;

Loading…
Cancel
Save