Forms not sending email

Permalink
Hi, I'm very new to concrete 5 but I've written websites in pure html before, but I now need to get into responsive website building so I found WordPress way too restrictive. So here I am in concrete 5.

But I have a problem which reading other comments so do many others.

I have an enquiry form built using the block for forms. I've edited the concrete config.PHP file to have the correct email address in. I've setup the SMTP correctly and it has successfully sent a text email via the control panel.

So why do the forms only safe the entered data in the Forms database and not email the results out? What use is that?

Can anyone tell me why the emailing system isn't working?

I've had to resort to writing the enquiry form in pure html.

 
hutman replied on at Permalink Reply
hutman
Did you check the box in the form settings to send the emails?

Do you see the emails showing up in the Dashboard -> Reports -> Logs?
Petersewell replied on at Permalink Reply
Hi, thanks for your very quick reply.

In the form block, in the results tab, I only have one option and that is Forms and it's ticked. There isn't an option for email.

I might be thick here but can you explain how to use the logs option to see what is going on when a form is entered and submitted.

This is the part of the config file which says emails enabled

'email' => [
/*
* Enable emails
*
* @var bool
*/
'enabled' => true,

But I've found that in this config file this section doesn't match what the control panel says is set for SMTP method....

/*
* ------------------------------------------------------------------------
* Mail settings
* ------------------------------------------------------------------------
*/
'mail' => [
'method' => 'PHP_MAIL',
'methods' => [
'smtp' => [
'server' => '',
'port' => '',
'username' => '',
'password' => '',
'encryption' => '',
'messages_per_connection' => null,
],
],
],

Is this where the error is? Is this what's causing my emails not to send?
hutman replied on at Permalink Reply
hutman
It's great that you are eager to learn but please do not go editing config files just yet. On the front end when you placed the block there should be a tab where you can set where the submissions go. If you don't see that please take a screenshot of what you do see when editing the form block.
Petersewell replied on at Permalink Reply 1 Attachment
Hi, Thanks once again for your reply.

I edited the config file because I found other posts on this forum which suggested the edit. I made a copy before doing the edit.

Anyway, here's a screen shot of the form block results tab...
hutman replied on at Permalink Best Answer Reply
hutman
What do you have in the Options tab? The results are not going to help here.
Petersewell replied on at Permalink Reply
Oh my!!!

You'll never guess what?

I didn't scroll down....I feel so stupid. I didn't realise there were more fields below!!!

I feel so so so so so stupid...It's working now...
hutman replied on at Permalink Reply
hutman
Glad it's working
Petersewell replied on at Permalink Reply
I can't believe how stupid I was.

Can you explain how I might use a template to make the email submission a better layout?

Is that possible?

When I coded directly in html I was able to use a html template to beautify the email submission.
hutman replied on at Permalink Reply
hutman
You can customize it by copying concrete/mail/block_express_form_submission.php to application/mail/block_express_form_submission.php and customizing that file. You will need to clear your site's cache to see the changes.