|
Stu author 4/29/2009 |
I checked the code you use in your Sendmail routine and its the same as recommended elsewhere on the web for CDO. My aplication which works perfectly on an old Windows 2000 server ii5 gives the following error on Server 2008 iis7 Technical information Error number -2147221005 Error description 006~ASP 0177~Server.CreateObject Failed~800401f3 URL /customersupport/WebChat_add.asp Solution Reinstall MDAC (Microsoft Data Access Components) Using latest build of 6.0 I looked that your Sendmail code and note the detection of iis7 but your code path labels the following code as "XP/2000". Will Sendmail work on Server 2008 with iis7. Can you advise how to make it work Regards, Stu |
|
Stu author 4/29/2009 |
I found this item that seems to define what the problem is http://forums.iis.net/t/1144383.aspx I checked the code you use in your Sendmail routine and its the same as recommended elsewhere on the web for CDO. I thought I'd review how to setup e-mail in ASPRunner. It seems to me that the Virtual SMTP server on iis is just like any other mail server. So, all it needs is the recipient and via DNS and it does its stuff. If that is the case then how do the settings in ASPRunner Security have a bearing? I have found that if I don't set something then Sendmail never works even under older iis. Do I have to provide a downstream SMTP server ip in Security for Sendmail to work. In iis7 SMTP you can set SMTP to use "localhost" or send SMTP to another Host. Amongst all these combinations of settings which one's would I choose for iis7? That is what do I set in Security and what would I set in SMTP server in iis7. Also, could it be something to do with CDO or even permission between the iis7 server and the external SMTP server that routes the e-mail? Regards, Stuart |
![]() |
Admin 4/29/2009 |
Stu, |
|
Stu author 4/30/2009 |
Sergey, Stu, as a first step I recommend to make sure this sample works on your system. We'll proceed from there. |
|
Stu author 4/30/2009 |
Yipeee!!!! Sergey, I'll try a few of the recommended approaches. One is to put CDONTS into iis7 and the other is to use CDOSYS. Here is another article on using CDOSYS. http://www.w3schools.com/asp/asp_send_email.asp I will feedback to everyone what solution I adopted . Regards, Stu |
![]() |
Admin 4/30/2009 |
Stu, |
|
Stu author 5/7/2009 |
I just wanted to add that I got it all working with the code I showed above. However, for some reason I can't explain it stopped working with an error "The transport failed to connect to the server.". Stu, try to remove or IISVer = "7.0" part in existing sendmail function. ASPRunnerPro already uses CDO (CDOSYS) you just need to make sure correct part of code is executed. |
|
Stu author 5/7/2009 |
One other thing. It is possible to keep the Sendmail code as delivered by ASPRUNNER but then install CDONTS on Server 2008. |
|
Stu author 5/8/2009 |
UPDATE:- One other thing. It is possible to keep the Sendmail code as delivered by ASPRUNNER but then install CDONTS on Server 2008. I followed this article http://www.jppinto.com/index.php/2009/03/i...ws-server-2008/ Note the example on how to set SMPTP for local relay isn't the same dialogue for Server 2008. I did it succesfully and the page displayed a test message on screen that I setup as if the mail was going to be delivered - but no mail was delivered. It may be that in CDONTS the SMTP server name has to come from ASPRUNNER Security Settings. Not sure if I had them set correctly so you may wish to experiment. I'd suggest trying this method first so it stays consistent with what ASPRUNNER delivers. If not then try the CDOSYS code I posted. Regards, Stu |
![]() |
Admin 5/8/2009 |
Stu, |
|
Stu author 5/14/2009 |
Sergey, Stu, I'm afraid I've lost the track a little bit. I'm glad you found a workaround that works in your environment. I can also recommend to check ASPRunnerPro 6.1 that features improved runner_mail() function with HTML emailing capabilities, error handling and smarter logic. It tries to send an email via CDO first and if it doesn't work it switches to CDONTS. |
|
Stu author 5/14/2009 |
Sergey, Sergey, Sorry for all my commentary. In fact that change to SendEMail=True resulted in an error and I hade to change it back. When I initially got it working with the very first code for CDOSYS it was fine and then suddenly stopped working. I found that by simply deleting the older code let it work again. Then it stopped again and so I reloaded 766, added back the CDOSYS code and its working now. Hence my "Its working" - "It ain't working" switching. I was really hoping to leave a trail for people with a similar problem so they had some resources and ideas. I do have 6.1 but it was giving a few errors and a switch back to 6.0 766 was smooth so I stayed with it until my project was delivered. If you could just indicate a link to the very latest 6.1 I will try it again. Using ASPRunner has enhanced my reputation for delivering web-enabled data functionality so I once again thank you for the product. Regards, Stu] |
![]() |
Admin 5/14/2009 |
Stu, |