cosullivan / SmtpServer

A SMTP Server component written in C#
MIT License
690 stars 163 forks source link

How SmtpServer sends email message to smtp.gmail.com #197

Closed sokhibjaynarov closed 1 year ago

sokhibjaynarov commented 1 year ago

this project able to receive mail message from gmail.com to come own mail address. But how we can send mail message from own address to Gmail

jlunman commented 1 year ago

This library is only for receiving messages as an SMTP server. To send messages, you need an SmtpClient, like the one in MailKit. There's also a built-in System.Net.Mail.SmtpClient in .NET, but it is considered obsolete, and only preserved for backward compatibility. MailKit's SmtpClient is recommended instead.