Вопрос

I need to know what are all the possible things (passwords, port numbers, server ip addresses, protocols, attachments etc) that one needs to know to send an e-mail to any e-mail address using C# code. Please tell me what they are. Hopefully, I should be able to figure out all the coding myself.

Thanks.

Это было полезно?

Решение

Take a look at these two pages. MSDN is a goldmine when you're looking for things that use C#

  1. MailMessage Class
  2. SmtpClient Class

And use this link if you want a basic example.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top