From the BlogSubscribe Now

Sending SMTP Email in C#

If you’re needing to connect to an SMTP server from within your C# to send emails, here is some example code of how to do that. This example sends an email with a display name that is passed to the method, technically if you wanted you could also pass the from address to the constructor and be able to modify the from address on the fly as well.

Speak Your Mind

*

13 − eleven =