Skip to content

Conversation

aminsharifi
Copy link
Contributor

All projects have been unified for "GlobalUsing"; based on the implementation of the sample project.
9db4a84

@@ -17,7 +14,7 @@

public async Task SendEmailAsync(string to, string from, string subject, string body)
{
var emailClient = new SmtpClient(_mailserverConfiguration.Hostname, _mailserverConfiguration.Port);
var emailClient = new System.Net.Mail.SmtpClient(_mailserverConfiguration.Hostname, _mailserverConfiguration.Port);

Check warning

Code scanning / CodeQL

Missing Dispose call on local IDisposable Warning

Disposable 'SmtpClient' is created but not disposed.
@ardalis ardalis merged commit cd232e2 into ardalis:main Oct 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants