Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Error email sender


Reply


2 Posts   545 Views

Avatar
AndrewMK

Community Member, 23 Posts

9 August 2011 at 9:27am

I have a requirement to change the email address that error messages are sent from. At present it is 'errors@silverstripe.com' but we wish to change this address to one of our own internal addresses but i cannot find any where to do this?

I have tried Email::setAdminEmail('me@somone.com');

But this does not seem to work?

Avatar
Willr

Forum Moderator, 5513 Posts

9 August 2011 at 7:06pm

This is set in the SS_LogEmailWriter. See http://api.silverstripe.org/2.4/sapphire/dev/SS_LogEmailWriter.html#methodset_send_from for how to customize.