Feature Request: "Email sender" setting for system-generated emails

Permalink
Just playing around with the CMS (it's really cool by the way). I noticed something when I forgot my admin password. I forgot to reset it after setup, so I sent a "Forgot my password" request.

It appears email's are sent with the "from" field set to the admin's email address. I noticed this because I set my admin account's email to my gmail address, and when I received the email, Gmail threw it in spam because the "from" was set to my Gmail address.

I think it would be ideal if there was a setting in the Email configuration that allows you to specify a "From address" and "Reply-to address". Possibly even a "Sender address".

 
12345j replied on at Permalink Best Answer Reply
12345j
try
define('FORM_BLOCK_SENDER_EMAIL', EMAIL_DEFAULT_FROM_ADDRESS); //set the form block from email to the default from email
define('EMAIL_DEFAULT_FROM_ADDRESS', 'someemail@something.com'); //from email for form submissions and such
define('EMAIL_DEFAULT_FROM_NAME', 'Some Guy'); //name displayed for the above email
LucasAnderson replied on at Permalink Reply
LucasAnderson
The above code is correct, and should go in your /config/site.php file.
simshaun replied on at Permalink Reply
I still think it would be nice to have options in the admin for this, because it may be something clients want to change, but thank you for the code. Guess I need to spend an afternoon reading the docs and just dive in.
LucasAnderson replied on at Permalink Reply
LucasAnderson
I agree. There is an add-on in the marketplace that allows site admins to edit any site config variables/settings. However, because these settings can break your site if not configured properly, I wouldn't recommend it for the average user.

http://www.concrete5.org/marketplace/addons/herent-config-pages/...
simshaun replied on at Permalink Reply
Interesting add-on. Definitely something I may find useful for myself, but I agree with your warning.