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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   624 Views

Avatar
JMOR

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

Thanks
John

Avatar
Willr

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("youremail@mail.com") it should use that email address. If you need to change this email address you can in 3.0 via the new Injector API - http://doc.silverstripe.org/framework/en/reference/injector.

Avatar
JMOR

Community Member, 12 Posts

20 March 2013 at 6:56am

Silver Stripe 3.05