2002 Posts in 1422 Topics by 616 members
|Go to End|
4 March 2009 at 9:21am
I've got the userforms working. I get the submissions no problem in the admin section, but I cannot seem to get emails when people submit.
Being totally new to this kind of thing, I've gone through the help-modules:userforms (http://doc.silverstripe.com/doku.php?id=modules:userforms). I defined the email in the _config file in my root directory (is this the correct _config file?). I've set it to email form on submission and entered the email address. Is there anything else I am missing or not doing? The help page has the list seen below, but I am not quite sure what to do as it just lists files.
7. Ensure Email::setAdminEmail(â€™firstname.lastname@example.orgâ€™); is defined in _config.php of your project
* email/SubmittedFormEmail.ss (See UserDefinedForm_SubmittedFormEmail. The email the admin will recieve once the form is submitted, if the â€œsend copy to this email addressâ€ checkbox is ticked, a copy of this email will be sent to the user)
* use this template control for the email templates:
<% if Data %>
<% control Data %>
<% end_control %>
<% end_if %>
*ReceivedFormSubmission.ss (the template that the user is sent to, once the form is submitted - add $OnCompleteMessage in this template to show the â€œon completeâ€ text)
Any help would be greatly appreciated. Thanks in advance!
4 March 2009 at 2:02pm
Do you know if mail in general is working on your server?. One way to test this is to make a new file testmail.php and have something like this in it
<?php echo mail("email@example.com", "test msg", "OMG a test"); ?>
Then load that page. Does the email send?
13 March 2009 at 1:19am
Yeah I tried a testmail.php file and we do receive an email. Still not sure why we aren't getting them from the forms.
30 April 2009 at 8:32pm
I am having this same problem. I have tried the testmail.php email and it works.
But when the form is submitted it doesnt send the emails properly. It does show the filled form data in the CMS tho.
I am using shared hosting on Godaddy.com, Could this have something to do wiith it?
|Go to Top|