Optimized imports & removed redundant qualifiers

This commit is contained in:
Scorpoon
2024-11-10 14:57:50 +01:00
parent 89ece413c8
commit 039b30da4f
19 changed files with 61 additions and 58 deletions

View File

@@ -1,6 +1,7 @@
using CarCareTracker.Models;
using MimeKit;
using MailKit.Net.Smtp;
using MailKit.Security;
namespace CarCareTracker.Helper
{
@@ -151,7 +152,7 @@ namespace CarCareTracker.Helper
using (var client = new SmtpClient())
{
client.Connect(server, mailConfig.Port, MailKit.Security.SecureSocketOptions.Auto);
client.Connect(server, mailConfig.Port, SecureSocketOptions.Auto);
//perform authentication if either username or password is provided.
//do not perform authentication if neither are provided.
if (!string.IsNullOrWhiteSpace(mailConfig.Username) || !string.IsNullOrWhiteSpace(mailConfig.Password)) {