[SOLVED] No Emails from Ajax Contact Form

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2007, 01:15 PM
New Pligger
 
Join Date: May 2007
Posts: 7
I have setup the Ajax contact form. I have enabled the module. I have updated the ajaxcontact_settings.php file with my name and email address.

Every time I submit a message via the form I see the "Success! Your Email has been sent. Hope you enjoyed your stay" message at the top of the page but I never get an email to the address I put in the settings file. Any help is much appreciated.

thx,
Reply With Quote
  #2 (permalink)  
Old 05-27-2007, 05:09 PM
New Pligger
 
Join Date: May 2007
Posts: 7
In troubleshooting this issue I noticed that all the emails from the contact form are going to the email address that is entered into the "email" field of the contact form. I'd imagine that this is not correct since any visitor wouldn't know the site's contact email b/c is it not posted anywhere. Again any help is much appreciated.

thx,
Reply With Quote
  #3 (permalink)  
Old 05-27-2007, 06:07 PM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Did you configure these lines in ajaxcontact_settings.php? The first line dictates where the message is sent to, not what the user enters.

Code:
define('ajaxcontact_youremail', 'email@domain.com');
define('ajaxcontact_yourname', 'Site Name');
define('ajaxcontact_subject', 'Contact Form: ');
Reply With Quote
  #4 (permalink)  
Old 05-27-2007, 06:29 PM
New Pligger
 
Join Date: May 2007
Posts: 7
Yes. This is the exact code from my file:

Code:
<?php

// the path to the module. the probably shouldn't be changed unless you rename the ajaxcontact folder(s)
define('ajaxcontact_path', my_pligg_base . '/modules/ajaxcontact/');

// the path to the module. the probably shouldn't be changed unless you rename the ajaxcontact folder(s)
define('ajaxcontact_lang_conf', '/modules/ajaxcontact/lang.conf');

// the path to the modules templates. the probably shouldn't be changed unless you rename the ajaxcontact folder(s)
define('ajaxcontact_tpl_path', '../modules/ajaxcontact/templates/');

define('ajaxcontact_youremail', 'jason@coldpancakes.com');
define('ajaxcontact_yourname', 'Cold Pancakes');
define('ajaxcontact_subject', 'Contact Form: ');


// don't touch anything past this line.

if(is_object($main_smarty)){
	//$main_smarty->assign('ajaxcontact_path', ajaxcontact_path);
	//$main_smarty->assign('ajaxcontact_lang_conf', ajaxcontact_lang_conf);
	//$main_smarty->assign('ajaxcontact_tpl_path', ajaxcontact_tpl_path);
}

?>
Reply With Quote
  #5 (permalink)  
Old 07-08-2007, 06:34 PM
Pligg Donor
 
Join Date: Aug 2006
Posts: 37
I'm having this exact same problem. I do not get any email from the program. I punched in my home email address and I received the email on my home address rather than on the defined email address.

Is there any resolution to this? Can someone tell me what file needs to be edited? I'm not afraid to hardwire it to the address I want to use.
Reply With Quote
  #6 (permalink)  
Old 07-09-2007, 12:12 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
There is more possibility that your webhost does not have/support php mail() which is used for this function - please contact your host on this they can enable it for ya.

Also some hosts have a restriction that an email cannot be sent to your same host (I faced with dedicated physical on MT) - but your webhost can get it sorted through a small modification to the php.ini

Also a small test would help:
create a simple mail.php to send out an e-mail using php mail function to see if it works:
Code:
@mail("your-mail/receipant","Test subject","Test message","From: Yourself <your mail again>\r\nTo: a receipant");
Reply With Quote
  #7 (permalink)  
Old 07-09-2007, 08:47 AM
Pligg Donor
 
Join Date: Aug 2006
Posts: 37
Quote:
Originally Posted by dollars5 View Post
There is more possibility that your webhost does not have/support php mail() which is used for this function - please contact your host on this they can enable it for ya.
Hmmrf. Something must have been screwy with my host. Things are working now. Hope the OP got his problem ironed out too.

Last edited by dinki; 07-09-2007 at 08:52 AM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mod request] (re)captcha for ajax contact form? Rodney Questions and Comments 7 02-18-2011 11:02 AM
Ajax Contact Form not working rubber2002 Questions and Comments 9 07-18-2008 11:29 PM
Ajax Contact Form v0.1 ??? dragan Questions and Comments 10 04-24-2008 04:44 AM
Another AJAX Contact form sending error GeneralLedger Questions and Comments 2 03-22-2008 03:49 PM
Ajax Contact Form v0.1 Sadmir Questions and Comments 1 03-26-2007 01:39 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development