Adjusting "From" field in Enquiry Form results
Permalink
I've read a lot on forum about my problem but none of the posts seem to answer it fully....
The emailed results of the built in C5 Form block have, of course, a "From" field as well as a "Reply to" field. Like many people I wanted to change the:
From concrete5-noreply@[mydomain.com] to something less confusing for client and have successfully edited the line in [root]/concrete/config/base.php
define('EMAIL_DEFAULT_FROM_ADDRESS', 'concrete5-noreply@' . str_replace(array('http://www.', 'https://www.', 'http://', 'https://'), '', BASE_URL));
by changing that concrete5-noreply@ to website@ I can live with this.
However, I would really like to have the value entered by the site user in the email field appear in the "From" field of the recipient's email as well as the "Reply to" field. Clears up any confusion plus it will lessen any worry about the results being treated as spam by certain recipient sites if I use email forwarding, as the 2 values would be the same. I have failed to get the correct variable to put in here (can I even do so??)
If the precise answer to my question is elsewhere on the forum (for latest version of C5) I'd be delighted to be pointed to it.
Many thanks
The emailed results of the built in C5 Form block have, of course, a "From" field as well as a "Reply to" field. Like many people I wanted to change the:
From concrete5-noreply@[mydomain.com] to something less confusing for client and have successfully edited the line in [root]/concrete/config/base.php
define('EMAIL_DEFAULT_FROM_ADDRESS', 'concrete5-noreply@' . str_replace(array('http://www.', 'https://www.', 'http://', 'https://'), '', BASE_URL));
by changing that concrete5-noreply@ to website@ I can live with this.
However, I would really like to have the value entered by the site user in the email field appear in the "From" field of the recipient's email as well as the "Reply to" field. Clears up any confusion plus it will lessen any worry about the results being treated as spam by certain recipient sites if I use email forwarding, as the 2 values would be the same. I have failed to get the correct variable to put in here (can I even do so??)
If the precise answer to my question is elsewhere on the forum (for latest version of C5) I'd be delighted to be pointed to it.
Many thanks