is concrete 5 not configured to send an acknowledgement email to ender users?

Permalink
I have a registration form on my website.
When the user hits submit, they are presented with an in-page thank you message...
An email is triggered to a set email address (which alerts us that a user has used the form)
HOWEVER, the customer does not receive acknowledgement by way of email.

This is an issue because -- for whatever reason -- sometimes the submittal process may take a few seconds longer than it should, causing the user to repeatedly hit submit -- and invariably means I have about 20 identical submittals in the db..

If the user receives an email acknowledging their submittal then at least they will know it was a success..

How do I set it up so that users receive a response? Is this easy to implement?

Many Thanks

 
c5dragon replied on at Permalink Reply
c5dragon
Copy the default form controller to application/blocks/form/
Change namespace to Application (instead of Concrete)

Copy the default mail snippet and wrap it with an if statement to check if you have an actual emailadres to send it to. Put it right after the default email notification.

Copy the block_form_submission mail template to application/mail and change its name to have a custom reply template for the user notification.

Change the loaded template in the new email reply snippet.

When you add a form you have to check the checkbox from the email field for it to work.

From line 569 of the form controller inside the if statement:
$mh = Core::make('helper/mail');
    $mh->to($this->recipientEmail);
    $mh->from($formFormEmailAddress);
    $mh->replyto($replyToEmailAddress);
    $mh->addParameter('formName', $this->surveyName);
    $mh->addParameter('questionSetId', $this->questionSetId);
    $mh->addParameter('questionAnswerPairs', $questionAnswerPairs);
    $mh->load('block_form_submission');
    $mh->setSubject(t('%s Form Submission', $this->surveyName));
    //echo $mh->body.'<br>';
    @$mh->sendMail();
  if (replyToEmailAddress != $this->recipientEmail && !empty($replyToEmailAddress){                
    $mh = Core::make('helper/mail');
    $mh->to($replyToEmailAddress);
    $mh->from($formFormEmailAddress);
PMorrison replied on at Permalink Reply
Is there any documentation for this.
I'm sure to make a pigs ear of it otherwise..
c5dragon replied on at Permalink Reply
c5dragon
Added a code sample tot my original post.
MichaelBrian76 replied on at Permalink Reply
I found this page with documentation for configuring the emails Concrete5 uses to do certain things. I configured that and it fixed all my email errors for now.

One has to create an empty file named concrete.php in the applications/config folder. Then I found the code to write there on their website athttps://documentation.concrete5.org/developers/sending-mail/configur...

I just subbed my email address for theirs
tobyme replied on at Permalink Reply
I am going to post a new request on this.

I am really surprised this isn't a function included within the new Form improvements, can we ask for that to be added? It is a major requirement of modern forms.

I have built a form with the new c5.8 form fields (not the legacy form), how would we do this function with that? The above I am assuming is for the legacy form as all the new form files are in the folder express_form.