forms
Permalink
Is there a way so that when the form is e-mailed to the client it will say where the e-mail is coming from?
the sender address on the form block has been added to the upcoming release of concrete5, and is set to the email of the admin user.
Is it possible to have the 'from' be a field in the form? So it can appear to come from the site visitor, when they fill in their email address in the form.
it is possible with minor modification
Tease.
dude, this is like 2 years old.
Ha! yes, but the problem is current, and searching for a solution will include this thread, so The Thread's Not Dead.
If you are using the standard form, then you are using generic fields, and the form doesn't distinguish content. Form submissions are from the site admin as the default email address.
To change this (c5 5.4+), you either add this to config/site.php
... which will give you a different default sender address for submitted forms, OR...
you could get the sender's address from whatever field you've labelled "email address" and parse it for validity, then include that, by adding PHP. See this post for an example:
http://www.concrete5.org/documentation/how-tos/developers/add-abili...
If you are using the standard form, then you are using generic fields, and the form doesn't distinguish content. Form submissions are from the site admin as the default email address.
To change this (c5 5.4+), you either add this to config/site.php
define('FORM_BLOCK_SENDER_EMAIL', 'name@example.com');
... which will give you a different default sender address for submitted forms, OR...
you could get the sender's address from whatever field you've labelled "email address" and parse it for validity, then include that, by adding PHP. See this post for an example:
http://www.concrete5.org/documentation/how-tos/developers/add-abili...
has anyone noticed where this code is no longer working for the controller.php file in the form block?
The email address now shows as my UN for my server with my SSL mail server name behind it. Any ideas of the reason for change? Something in the update?
$fromEmail=$answer; $mh->( $fromEmail );
The email address now shows as my UN for my server with my SSL mail server name behind it. Any ideas of the reason for change? Something in the update?