i am attempting to send an e-mail using .net, but the mail server i am sending through requires server authentication. this is a problem as i do not see a way to authenticate using my username / password. any help would be appreciated.
As you have found, system.web.mail does not support sending mail through an smtp server that requires authentication. You will have to use CDOSYS on Windows 2000 or later, Outlook COM Automation, or another third-party solution for authenticated STMP. One simple free third-party smtp class that you can use, can be found here
I agree. If security was really on Microsoft's mind when building .Net, then they should have built authentication in. It's not like it could have been that hard. All they did was build a wrapper for the CDOSYS component, which has this capability, it's just not implemented in the wrapper. Oh well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.