.asp form not working on windows server.


Registered User
1 post



The contact_form.asp file has been uploaded to the site. When I test the email now the asp page answers
but provides this message.

Unable To Send E-Mail
We're sorry but we were unable to send your e-mail. If you are
sure that you entered all your email addresses properly, you
should contact your server administrator.

VBScript Version: 5

Software Version: 8.0
Software Last Updated: 08/31/2007

Script Version: 5.0
Script Last Updated: 02/25/2009

CDOSYS: Available
ADODB: Available

The SMTP is just standard IIS7 as this is a 2008 web server and
it is set to relay directly to our internal Exchange server. It
appears that the asp page is not finding the SMTP service. I
have validated that I can relay mail from it already so it is
able to communicate with Exchange just fine. Could the issue be
that the code is written for IIS6 and MS changed something in 7?

Please advise. Bob Hendrix
President/Chief Web Architect/Developer
www.elegantimagestudios.com


Ambassador
238 posts

Bobby wrote:


The contact_form.asp file has been uploaded to the site. When I test the email now the asp page answers
but provides this message.

Unable To Send E-Mail
We're sorry but we were unable to send your e-mail. If you are
sure that you entered all your email addresses properly, you
should contact your server administrator.

VBScript Version: 5


Software Version: 8.0
Software Last Updated: 08/31/2007

Script Version: 5.0
Script Last Updated: 02/25/2009

CDOSYS: Available
ADODB: Available

The SMTP is just standard IIS7 as this is a 2008 web server and
it is set to relay directly to our internal Exchange server. It
appears that the asp page is not finding the SMTP service. I
have validated that I can relay mail from it already so it is
able to communicate with Exchange just fine. Could the issue be
that the code is written for IIS6 and MS changed something in 7?

Please advise.


Hi Bobby
first of all can you confirm which server you are running on.
Is it a windows server
or a Linux server.
If not sure ask your server provider
Windows servers use ASP scripts
Linux servers use PHP scripts Dave Butler
Yorkshire
England

Old Rishworthians Rugby Union Football club http://www.orrufc.co.uk
Tuxedo Junction Yorkshire Function Band http://www.riley-tuxedojunction.co.uk
The Commons Guest House http://www.thecommons-guesthouse.co.uk
all created with Coffee Cup html editor


Ambassador
313 posts

You have probably set this up already so please forgive me if it sounds like I am teaching grandma to suck eggs; you must use a valid email address to send your email, that is, one that already exists in the mail server system. You can't just dream one up and use that; it must be a valid and existing address. If you can send an email using your email client with that address then the form should work as well.

Dave.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.