In the web.config for the website the following is present
<add key="SMTPserver" value="localhost" />
These settings work fine out of the box on the Server 2003 system (i.p is different) but that is using IIS6 to provide SMTP relaying, I have setup Exchange 2007 to the point where I believe this should be working but am having issues tracing the code attempting
to send email, the rest of the site seems to be working ok on the Server 2008 x64 system apart from the email.
Any pointers in the direction to be looking or ways to check for the would be much appreciated.
Edit: Crap - I just realised this should have been in the administration forum, if a mod can move it, it would be appreciated.
In response to the other post, I was under the impression from what I have read that an application running in asp.net 1.1 wouldn't accept settings, set in the feature view in the GUI and had to have all the info set in the web.config (which is already
setup) ?
Have tried to start from sscratch, reinstalling all the asp.net 1.1 software (the dotnetfx, sp1 and sp1 security hotfix) but still cannot get the site to send emails.
Any suggestions on tracing smtp requests from the code / iis7 ?
I registered on this site because I want to know your fix. I have been working on this for weeks now and I created a stackoverflow and servefault entry. I even posted the issue in my blog:
http://www.moushigo.com/index.php/2012/02/22/trivial-smtp-asp-net-winsock-connectivity-issues/ Please reply here or add a comment on my blog so we can find out if this has a fix or not. The issue is so trivial I can't sleep.
Edmond Egan
5 Posts
Asp.Net 1.1 SMTP issues on IIS7 X64
Jan 18, 2010 09:56 PM|LINK
Hi all,
I am trying to migrate a website running on IIS6 (Server 2003 x86) to a Server 2008 x64 with Exchange 2007 as the email server.
The site seems to run but is having issues sending emails.
The web server on the Server 2008 x6 system has been configured as per http://blogs.iis.net/bills/archive/2008/06/02/installing-asp-net-1-1-with-iis7-on-vista-and-windows-2008.aspx , I started to run through this again to make sure I haven't missed anything and I did run into problems reapplying the security hotfix but I do believe this has been applied previously.
The application pool is set to run 32 bit applications, classic, using the .net 1.1 framework
Searching through the code I have found the following which I believe indicates it is using built in commands in asp.net 1.1 to send the emails.
msgMail.From = System.Configuration.ConfigurationSettings.AppSettings["EmailAddressFROM"].ToString();In the web.config for the website the following is present
<add key="SMTPserver" value="localhost" />
These settings work fine out of the box on the Server 2003 system (i.p is different) but that is using IIS6 to provide SMTP relaying, I have setup Exchange 2007 to the point where I believe this should be working but am having issues tracing the code attempting to send email, the rest of the site seems to be working ok on the Server 2008 x64 system apart from the email.
Any pointers in the direction to be looking or ways to check for the would be much appreciated.
Edit: Crap - I just realised this should have been in the administration forum, if a mod can move it, it would be appreciated.
Rovastar
3321 Posts
MVP
Moderator
Re: Asp.Net 1.1 SMTP issues on IIS7 X64
Jan 19, 2010 11:39 AM|LINK
Windows 2008 (IIS7.0) or windows 2008R2 (IIS7.5)?
Leo Tang - M...
4161 Posts
Microsoft
Re: Asp.Net 1.1 SMTP issues on IIS7 X64
Jan 21, 2010 05:36 AM|LINK
Hi,
If you want to deliver e-mail messages from your site, you need to configure SMTP e-mail in IIS. For the detailed information, please refer to:
Configure SMTP E-mail (IIS 7)
http://technet.microsoft.com/en-us/library/cc772058(WS.10).aspx
Feedback to us
Develop and promote your apps in Windows Store
Edmond Egan
5 Posts
Re: Asp.Net 1.1 SMTP issues on IIS7 X64
Jan 22, 2010 06:59 PM|LINK
Hi there,
Its IIS7 on Small Business Server 2008.
In response to the other post, I was under the impression from what I have read that an application running in asp.net 1.1 wouldn't accept settings, set in the feature view in the GUI and had to have all the info set in the web.config (which is already setup) ?
Edmond Egan
5 Posts
Re: Asp.Net 1.1 SMTP issues on IIS7 X64
Jan 26, 2010 02:27 PM|LINK
Have tried to start from sscratch, reinstalling all the asp.net 1.1 software (the dotnetfx, sp1 and sp1 security hotfix) but still cannot get the site to send emails.
Any suggestions on tracing smtp requests from the code / iis7 ?
Moushigo
1 Post
Re: Asp.Net 1.1 SMTP issues on IIS7 X64
Feb 22, 2012 03:44 AM|LINK