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

Need exact syntax for Specifying E-mail from the system


Go to End


3 Posts   988 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