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

Need exact syntax for Specifying E-mail from the system


Reply

3 Posts   302 Views

Avatar
JMOR

19 March 2013 at 4:03pm Community Member, 12 Posts

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

19 March 2013 at 10:00pm Forum Moderator, 5511 Posts

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

20 March 2013 at 6:56am Community Member, 12 Posts

Silver Stripe 3.05