You can use the same classes and methods to send mail like in ASP.NET.
Simply add a reference to "System.Web.dll" and then copy your code from the
ASP.NET application.
Yes, as Herfried has mentioned, we can use the System.Web.Mail components
in any kind of .net applications without any difference. Just be sure the
specify the correct smtp server. If there is any specific problems or
questions, please feel free to post here. Thanks.