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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Error email sender


Go to End


2 Posts   1430 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, 5523 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.