![]() |
|||
|
About Article
Alternative to Simple SMTP E-Mail Sender in C#… Console application
I'm not sure that GC would matter very much in such a simple app.But, it's either a call to Dispose on your SmtpClient after you're done using it:smtp.Dispose();or use a using:using (SmtpClient smtp = new SmtpClient{ Host = "smtp.gmail.com", Port = 587, Credentials = new...
Related Videos
Related Articles
|
||||||||||||||