Submitting a form when MX records are pointed elsewhere (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


Guest -> Submitting a form when MX records are pointed elsewhere (5/21/2001 18:41:00)

Ok, here's a good one. My client already had email set up and did not want to disturb it. So I had planned on hosting his site with that same service provider. But the client wanted me to arrange other hosting, which I did and set the MX records to point to his original mail server. So now I have a contact form on the website which naturally submits by email to their domain email address. But it doesn't work. I asked my host if this is because the mx records are pointed at another server and they believe that's the problem. I have tried a test form on the site with the email going to my domain's email address and it works perfectly. Can someone tell me if this is logical? Is there a way around it?

Should I instead have their form submit to a password protected html page on their site? I also am saving it as a text file but can't think of a good way to give them access to it without their using ftp - not something I or they would be comfortable with.

Does anyone have a creative solution for me?

HALLLLLPPPPPPP!!!





davebukouricz -> RE: Submitting a form when MX records are pointed elsewhere (5/21/2001 22:00:00)

Well there may a couple of ways to approach this; I'm not sure I would go with the text file, when it may be just as easy to create a database with an ASP page to retrieve the results. Just gives you more options in the long run. The host can set permissions for access.
Does the site you have the page on give you pop mail? If your client is using outlook/outlook express it may be a simple matter of creating a mailbox for him and setting up a profile in his groupware to retrieve the mail from the pop account, preserving his existing mail structure. All in all about 10 minutes worth of work (providing the stars are in alignment.)
My bet would be that if those two are not viable, a simple cgi script could be written to re-direct the output of the form from s-mail to smtp allowing the results to be sent to any e-mail account.





DarlingBri -> RE: Submitting a form when MX records are pointed elsewhere (5/25/2001 21:40:00)

The current host should be able to help you. It's just going to a standard email address, right?

I mean, we host sites for xyz.com and send results to xyz@aol.com all the time, no problems.

--Bri





Guest -> RE: Submitting a form when MX records are pointed elsewhere (5/25/2001 22:07:00)

Well, it is a regular email address, but the problem is the domain www.thisdomain.com is where the form is and it's sending results to email address him@thisdomain.com but the mx records point the email to another server so that seems to be causing a bit of server confusion. It's an Apache server. I have another client on an NT box and same exact situation works just fine.

I've contacted the my host but they said it was the mx records not pointing to the same server causing the problem, and I haven't really pushed it yet. I suspect there's something in the extensions' setup that would correct this but I'm clueless. I was hoping an extensions type expert might be able to tell me something I could pass along to my host.

I got around the problem by sending the results to an email address on my own domain and auto-forwarding it to their email address. Not really ideal though.





Shirley -> RE: Submitting a form when MX records are pointed elsewhere (5/26/2001 20:33:00)

I don't understand what difference it makes where the mail server is.

Just trying to learn something here.

------------------
Shirley
It's what you learn after you know it all that counts.
Money Tree Web Design





DarlingBri -> RE: Submitting a form when MX records are pointed elsewhere (5/26/2001 20:38:00)

Your host should have a perl script set up for sending mail, most like one called formmail.pl or sendmail.pl. Ask them. Use this instead of the FP sendmail component.

You can still use the *exact* same form; just in the <form action="whatever"> bit, you need to manually edit the code and make some changes there )

--Bri

------------------
"Bother," said Pooh, as Piglet was assimilated by the Borg.
-------------------
Work, work, work: http://www.appercept.co.uk
Out of office hours: http://www.darlingbri.co.uk





dayglo -> RE: Submitting a form when MX records are pointed elsewhere (5/26/2001 20:14:00)

Im not sure I fully understand this thread, so may be totally off track, but it sounds sillimar to organising the everyone.net email, whereby you can offer people email at your domain name, but the mail gets sent to everyone.net where you collect it. Now it sounds that that is what is happening to your email, it is being sent to a domain name but not ending up at the correct server. With everyone net you have to request the mx settings to be changed.So in my case, I am offering email at my domain, but had to request my webhost to change the settings to everyone.net settings. Sounds like you need to do the opposite, request off the server that is receiveing the mail to change the setting to the domain host.
Probably misunderstood the whole thing, but never mind!




Guest -> RE: Submitting a form when MX records are pointed elsewhere (5/26/2001 20:17:00)

Bri-

Thanks for the suggestion. I've had my hands in cgi up to my elbows already this weekend so that's the perfect solution. Right in front of my nose!

Dayglo, the Nameservers record on the domain points to my host's server then my host points the mx records to where my client has his mail service. I know of a lot of companies that do this, for example, host their website outside and control their email inside. I have no idea why it's a problem on my host's server but I suspect it's a setup that could be changed in the FP extensions.

Thanks for the post. I have to check out everyone.net soon. Are they exclusively web based or can you do pop/smtp also?





dayglo -> RE: Submitting a form when MX records are pointed elsewhere (5/26/2001 18:04:00)

re everyone.net only the administrator (i.e. you) can forward mail, otherwise it is purely web based




Gil -> RE: Submitting a form when MX records are pointed elsewhere (5/26/2001 18:49:00)

quote:
Originally posted by Millie:

I know of a lot of companies that do this,


Yep - more & more are doing it...
quote:

I have no idea why it's a problem on my host's server


Really - makes you wonder doesn't it
quote:

but I suspect it's a setup that could be changed in the FP extensions.


It has nothing to do with FP, it's just mail routing, period.


------------------
Gil Harvey
The Host Factory
Resellers are our speciality
"Is there another word for synonym?"





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.09375