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, Ed, biapar, Willr, Ingo, swaiba

Need exact syntax for Specifying E-mail from the system

Go to End

3 Posts   594 Views


Community Member, 12 Posts

19 March 2013 at 4:03pm

I tried to syntax for specifying the e-mail is coming from a user but the system when I do a password reset only, just sends from
the default

I am suspecting that the reset pwd feature is sending email from somewhere else
Please advise

Email::setAdminEmail(string $adminemail



Forum Moderator, 5523 Posts

19 March 2013 at 10:00pm

You forget to mention whether you are on 3.0 or 2.4? Pretty sure if you use Email::setAdminEmail("[email protected]") it should use that email address. If you need to change this email address you can in 3.0 via the new Injector API -


Community Member, 12 Posts

20 March 2013 at 6:56am

Silver Stripe 3.05