Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form submits on one domain but not on the other

Status
Not open for further replies.

tiffcady

Programmer
Jun 13, 2007
6
US
I am not a CGI programmer, I just use cgi for form posting and email and need help.

I have two websites hosted on the same remote server.
I have similar forms on both sites that post to
ACTION="(of course on site 2 the domain is different)

On site 1 the form wont send me an email recently. If I change the domain in this non working form to the domain of the working site 2, it does work.

The forms all worked fine at one point. I did make some changes to the forms a while back and didnt test thouroughly - but I am not so sure my changes are the culprit since the form sends me an email of the submission fine if I only change the code to the working domain in the post action URL.

What could be the problem. Could it be somehting on my hosts' end? If so what? They dont like to help wioth technical issues unless I tell them what is wrong and tell them how to fix it. Could the cgimail file be causing it?


Thanks for your suggestions,.
Tiffany
 
Check the error logs first. If you can't do that then try some of these:

* make sure spelling AND punctuation is correct.
* no spaces allowed in the domain name OR the script name
* check for capitalization. Unix/Linux servers do make a distinction - even in the extension
* upload a fresh copy of your email script
* make sure your email address is correct in the offending script
 
I appreciate your tips.
I have learned more - this is REALLY a weird situation...need help from someone who understands email and web servers I think...

here's the situation as it stands - first some background then the problem:

We used to get email from our pop 3 acct via our web host.
We have two domains/sites with them. One (dom1) is the main acct and the other is a top level subdomain on that acct (dom2).
We only use email accts with the main domain.
like me @ dom1.com

We used to check our email thru the web, or in Eudora where we had the pop accts set up.

Recently we got an inhouse exchange server and we had our web host change the MX entries so the mail goes to the exchange server and we use outlook - I was getting form submissions fine when this went into effect. We also more recently had a tech support install a firewall because our pcs were being used as botfarms - the issues SEEMS to have started about this time however tech supports swears there is nothing they did that can be causing the following issue...

When you submit a form on Dom1 to go to my email address me@Dom1.com - the email goes to my old pop 3 acct and I can go on the webmial and read it, but does not come to the exchange server. It used to work. All other mail sent directly to me at the SAME address does come into the exchange server and thus my outlook...

When you submit a form on Dom2 (the subdomain) that has the same recipent me@Dom1.com (in fact the form is an exact copy too so I know there is no coding issue) it does not get hung - it comes to the exchange server and outlook...

It doesnt matter if I use my servers cgi email device, or if I do a mailtest.php - it works on one but not the other - well it work on the other, but the emails do not get to our exchange server.

Could it be there is still and MX entry that is not set right? Our host is not much help, we told them specifically ow ot change the MX entries and it took themn 3 tries to get it right...I dont know how to figure out which one they still need to fix IF this is the problem....

Can anyone help me???

thanks!
 
One more thing to add - if I delete the pop3 acct on our domain host (which my tech support says I should) then the emails just dont go anywhere, they dont get to the exchange server still...and so I wont be able to read them at all. So I set the pop3 acct back up so I can atleast get the form submissions there till i solve this issue.

 
OK, one OTHER thing to add, I am tesitng this with a VERY simple form for now, just a name and comment field - nothing else on the page at all- so I know it is NOT the syntax or anything simple like that.
It is definitely an issue somwwhere on some server or something like that...just where or waht I cant figure out...
Also the cgi I am posting to is an uneditable copy provided by our host - and it works, cause I get a conf page,a nd the host tells me he sees in his logs that an email is generated, and of course I actually get the email on the pop3 webmail acct - the probelm is these particular emails dont pass thru to exchange for some odd reason! Only the form submissions form one of the two sites, other direct emails to the same adress come into outlook just fine and submissions form the other site work too...
 
tiff...

If you own all the servers, including the Exchange server, then any email you submit to your own email address wil never go through the Exchange server because everything is "in-house". (Unless your tech crew has done something really strange...). To eliminate the Exchange server, try this... create an email account on yahoo, hotmail, gmail, etc. and change your scripts to match; then test. If you can get your forms on the "new" account OUTSIDE of your Exchange server, then it's your Exchange server/firewall set-up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top