Send mail to person filling in the form?
Permalink
Hi everybody,
I was wondering whether it's possible with the standard form block to send an e-mail to the person actually filling in the form (e.g. he / she enters e-mailaddress and an automatically generated message is sent to this e-mailaddress). I can't find the option and I hope it's easy to implement.
Thanks in advance!
I was wondering whether it's possible with the standard form block to send an e-mail to the person actually filling in the form (e.g. he / she enters e-mailaddress and an automatically generated message is sent to this e-mailaddress). I can't find the option and I hope it's easy to implement.
Thanks in advance!
i did this
duplicate this file...
/concrete/mail/block_form_submission.php
rename the new file ...
/concrete/mail/block_form_submission_user.php
then in the form block controller
concrete/blocks/form/controller.php
where you find this..
$mh->load('block_form_submission');
add this on a new line...
$mh->load('block_form_submission_user');
I think that is all i changed
hope it helps
(obviously this should not be done in the core files)
duplicate this file...
/concrete/mail/block_form_submission.php
rename the new file ...
/concrete/mail/block_form_submission_user.php
then in the form block controller
concrete/blocks/form/controller.php
where you find this..
$mh->load('block_form_submission');
add this on a new line...
$mh->load('block_form_submission_user');
I think that is all i changed
hope it helps
(obviously this should not be done in the core files)
Sorry for the late reply. Thanks for your answers. I would actually like to send a different mail to the user using the mail form. It seems that's only possible with the extended form.
You'll either have to modify the coding somehow and thus creating your own custom block or you can buy the extended form which has been modified for it already.
The basic form has no real e-mail field in it which would make it impossible to send a mail to the one submitting it.