icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old February 14th, 2007, 9:19 AM   #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'.
Savesheep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 14th, 2007, 10:29 AM   #2 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
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:
<?php
phpinfo
();
?>
If all fails, contact Dustin to see if he knows of anything that would block it from working.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 14th, 2007, 10:45 AM   #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. :/
Savesheep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 16th, 2007, 2:29 AM   #4 (permalink)
muffins
Excelling Contributor
 
jordanriane's Avatar
 
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
You need to enter in your own values!

I really think that's the problem--you just forget to include your own values
__________________
{o,o} O RLY? atourworst.org - mywhmcs.com
|)__)
-"-"-
jordanriane is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 16th, 2007, 4:15 AM   #5 (permalink)
﴾͡๏̯͡๏﴿...tweet
Super #1
 
Joined in Dec 2005
5,768 posts
Gave thanks: 147
Thanked 151 times
^Good observation.
__________________
poof
Brandonnn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 16th, 2007, 7:10 AM   #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
Savesheep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 16th, 2007, 12:16 PM   #7 (permalink)
muffins
Excelling Contributor
 
jordanriane's Avatar
 
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...
__________________
{o,o} O RLY? atourworst.org - mywhmcs.com
|)__)
-"-"-
jordanriane is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 16th, 2007, 12:26 PM   #8 (permalink)
Registered User
Comfy Contributor
 
Joined in Jun 2006
106 posts
Gave thanks: 5
Thanked 1 Time in 1 Post
thanks a lot - i'l check out that tutorial and see if i can make it ajax.

let me know if you have any luck trying out that script!

thanks!
Savesheep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 16th, 2007, 12:53 PM   #9 (permalink)
muffins
Excelling Contributor
 
jordanriane's Avatar
 
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.
__________________
{o,o} O RLY? atourworst.org - mywhmcs.com
|)__)
-"-"-
jordanriane is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On