Link to home
Start Free TrialLog in
Avatar of Mike Duplay
Mike DuplayFlag for United States of America

asked on

Website contact.asp for stopped working once i changed the webservers IP address

My organization purchased a website before i started that had a contact form as part of our website:

http://www.starkparks.com/contactus_form.asp

we had to change the ip address of the webserver as part of a ISP change. the website is up but the form hasnt sent any emails to the information@ address since the change. i have attached the code (but i am not sure what kind of code VB?) I assume I just need to change the smtp setting in the attached, but dont understand what Application(SMTPserver) means.

Any help? forms fills out fine but emails never make it to that account. i have confirmed the email account is working internally.
SMTP.png
Avatar of Bryan Butler
Bryan Butler
Flag of United States of America image

Does the new computer send mail any other way?  Like outlook or sendmail?  That is VB.
Application(SMTPserver) is probably defined in your global.asa file.  That is the normal place to set Application variables.

Probably could replace it with "localhost" and Application(SMTPport) is probably 25.

Your new ISP will tell you what should be in those locations. They probably have a help page or knowledge base article on sending mail via CDOSYS.
Avatar of Mike Duplay

ASKER

Is their a default location for a global.asa file?
I found the global.asa file and it was pointed to 127.0.0.1, so i cahnged to localhost. so it looks like the machine used itself to send mail. anythoughts why this stopped working? wonder if smtp service is shut down. anything else?
smtp service is running under services but i still cant get emails. i changed the email account under global.asa file just to be sure it wasnt an account issue, and still no mail. i noticed iis had a smtp virtual server section. anything under that I should check>?
question: besides changing the ip address of this server, we moved it behind a different firewall. so we have a outside ip mapped to this servers internal. would i need to add port 25 to the firewall settings for this server? i am having trouble visualizing the process if someone comes to this server via the website and it wants to send email is that already behind the firewall?
Are you planning on handling incoming mail?
yes, i have a mail server that is set up on my firewall with port 25. maybe i should try and point this server to that one. i was trying to avoid making too many changes becuase this is the way the company set it ip. i am looking at my firewall now and i see the outside ip mapped to the inside one for the webserver but it only has port 80. i wonder if i need to add port 25 for that server?
I think you should just change from localhost to the internal IP address of your mailserver that is already setup to receive mail.  You will need to tell that server's SMTP services to relay mail from your mailserver.
i just changed the global.asa file to reflect the internal ip of the stmp server already setup. what would i need to do to setup this servers smtp services to relay mail from my mailserver?
LOL. I told you I was lucky with SMTP, not expert.  I just go click stuff until I find what I'm looking for.  It's been 5 years since I've done this, and there is no SMTP zone...just IIS.  What Server Version? 2000, 2003, 2008?
I am using server 2003 on both machines. I may just try and open port 25 on the firewall since this is already mapped. that may be easier. thank you for your help and ill post tomorw and see how lucky i get.
ASKER CERTIFIED SOLUTION
Avatar of rdivilbiss
rdivilbiss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
cool - thanks again for the help
Company fixed it. Only took them 3 months. I think I was close. thanks for the help