Forms - Customise Notification Email

Permalink
Hi, here's my requirements which the current form block does not support.

1. Edit 'from' email
2. Edit 'subject' to include 'name' and 'company' fields of form user.
3. Edit 'body' to include, e.g. URL link to uploaded file.

Thanks;-)

senshidigital
 
ThemeGuru replied on at Permalink Reply
ThemeGuru
That would be nice!

Maybe one day we could intergrate a script like MachForm.

But the way it is now its a bit hard to customise build a form script that caters to everyones needs.

I guess only time can tell...
Mnkras replied on at Permalink Reply
Mnkras
copy

/concrete/mail/block_form_submission.php

to

/mail/block_form_submission.php

modify as you want, you can do it for all the stuff.

The from is configured via the SMTP settings
wizard247 replied on at Permalink Reply
wizard247
I'm stumped - I just copied block_form_submission.php to the /mail directory, made some changes to the "There has been a submission of..." line and copied it back to both /concrete/mail and /mail. I didn't see any change.

Also, has anyone been able to adjust this file to include the three options suggested above for "From" address, "Subject" etc.?

I'm at a loss how to program this in...
invision replied on at Permalink Reply
invision
wiz, you might want to check out the extended form in the marketplace. It gives you some of this functionality.
msglueck replied on at Permalink Reply
msglueck
for the sender address:

it's the email address of the admin user. Just go to "Users and Groups" and edit the admin user.

Alternatively you can set the mail address used for form submits in /config/app.php by adding:
define('FORM_BLOCK_SENDER_EMAIL', 'email@whateverdomain.com');

Cu
Markus