Question

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.

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top