Change Forgot password From address

Permalink
Hi all

I'd like to change the email address that forgot password reminders appear to come from. It seems to take admin's address, but since I am the admin and I am using my work email address it looks funny to my clients, who receive a reminder email from the company who designed their website!

I'd like to change it to no-reply@clienturl.com or something similar, which would be more professional.

I had a look at forgot_password.php in /mail but that doesn't allow specification of the from address.

Any help would be much appreciated :)

melat0nin
 
Brainakazariua replied on at Permalink Reply
Brainakazariua
To change the account contact forms, password reminders, etc are send from add the following line to your /config/site.php

define('FORM_BLOCK_SENDER_EMAIL', 'insert sender mail here');
melat0nin replied on at Permalink Reply
melat0nin
Thanks for the reply, but that's not correct for the forgotten password form, which is being sent from the admin's email rather than the address specified in that variable.
Brainakazariua replied on at Permalink Reply
Brainakazariua
Apologies, that was only for the forms, I just figured that out.

use this one instead:

define('EMAIL_ADDRESS_FORGOT_PASSWORD', 'insert sender mail here');


as defined in the /concrete/controllers/login.php it searches for the definition of the EMAIL_ADDRESS_FORGOT_PASSWORD.
I've tested the above and it works on my site.