|
|
#1 (permalink) |
|
Registered User
Comfy Contributor
Joined in Jun 2006
106 posts
Gave thanks: 5
Thanked 1 Time in 1 Post
|
AJAX webform won't email
So I uploaded this script to my vps, and uploaded it to my dad's site (on a different server way away from surpass). On my vps, it doesn't send the email, and yet it says it sent is successfully. On my dads server, it sends the email no problem.
I have not edited this script at all from the site, so check it out and tell me what you think. Could it be a php problem? Maybe different versions? http://www.dustindiaz.com/ajax-contact-form/ Thanks! -Shea test site: www.sheaallen.com/mtw/ - click on contact and type in your email, 'cc to myself'. |
|
|
|
|
|
#2 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,055 posts
Gave thanks: 48
Thanked 129 times
|
My guess is different server configurations... what the differences are? I don't know. There's also the chance the one server is on a spam list.
If you upload a script you'll at least be able to see if there's a different version of PHP: info.php PHP Code:
|
|
|
|
|
|
#3 (permalink) |
|
Registered User
Comfy Contributor
Joined in Jun 2006
106 posts
Gave thanks: 5
Thanked 1 Time in 1 Post
|
so the php versions wound up being the same. and dustin's site doesn't have a contact that i can find...as strange as that sounds as he wrote this contact form. :/
|
|
|
|
|
|
#4 (permalink) |
|
muffins
Excelling Contributor
Joined in Mar 2006
Lives in Chicago, IL
Hosted on NONE
644 posts
Gave thanks: 26
Thanked 34 times
|
I know this sounds really obvious but here's some things to consider:
- Are you using an off-server MX entry? If so, make sure the e-mail address you're sending to is actually created through cPanel. - You said you didn't edited the script at all, so.. maybe that's the problem. You need to access the directory /scripts/ and in the file "contact.php" and edit the first few lines Code:
<?php // change the 4 variables below $yourName = 'John Doe'; $yourEmail = 'user@example.com'; $yourSubject = 'testJax'; $referringPage = 'http://www.example.com/testJax/index.php'; // no need to change the rest unless you want to. You could add more error checking but I'm gonna do that later in the official release I really think that's the problem--you just forget to include your own values ![]() |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Comfy Contributor
Joined in Jun 2006
106 posts
Gave thanks: 5
Thanked 1 Time in 1 Post
|
hey there,
i don't use offsite mx records, and the email address i have it going to is a gmail account. i have entered my own variables, in fact its on two different scripts :/ the way i know they've been changed is by the referral page...it would jump the page to textJax/index.php upon submittal if they weren't changed. Also, you can type in your email address and say 'cc to myself' and it still dosn't come through. maybe something else? -Sheep |
|
|
|
|
|
#7 (permalink) |
|
muffins
Excelling Contributor
Joined in Mar 2006
Lives in Chicago, IL
Hosted on NONE
644 posts
Gave thanks: 26
Thanked 34 times
|
Well, without really being able to look at the problem I can't really give too much advice, but I'll try using the script myself to see if it works for me.
But if you just need a script (though not as pretty) how about trying out this one: http://www.tutorialtastic.co.uk/page..._and_protected I've been using it myself for a bit now, and I don't have any problems with it (eg: spam, or emails getting lost.) But yeah, I'll try out that ajax form to see if it's just not working anymore... |
|
|
|
|
|
#9 (permalink) |
|
muffins
Excelling Contributor
Joined in Mar 2006
Lives in Chicago, IL
Hosted on NONE
644 posts
Gave thanks: 26
Thanked 34 times
|
Well, it worked for me.
Did you change the four values for both of the php pages under /scripts/ ? That's all I had to do, and I uploaded it, then sent out the e-mail and voila. |
|
|
|