how do I send email from Asp.net?
-
I need to send an email from an asp.net page. The problem is Microsoft have locked down permissions for SMTP and the process controlling IIS doesn't have permission to send mail. The error code I get is 0x80040220. If I run exactly the same code from a Win32 app, the email gets sent without any problems. Does anyone know a way around this? Ideally the solution is something I can set in my code - it will make it easier for the end users of my asp app. many thanks
-
I need to send an email from an asp.net page. The problem is Microsoft have locked down permissions for SMTP and the process controlling IIS doesn't have permission to send mail. The error code I get is 0x80040220. If I run exactly the same code from a Win32 app, the email gets sent without any problems. Does anyone know a way around this? Ideally the solution is something I can set in my code - it will make it easier for the end users of my asp app. many thanks
I personally do not use the built in email. It is too dependant on being configured properly on the deployment server and I do not see a method to use password authenticated SMTP. So, with all my sites I always use OpenSMTP: http://sourceforge.net/projects/opensmtp-net/[^] They have quite a few examples. Easy to use, just include the library. Rocky <>< www.HintsAndTips.com www.MyQuickPoll.com - 2004 Election poll is #33 www.GotTheAnswerToSpam.com