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

email address


2 Posts   419 Views


13 April 2012 at 12:49am (Last edited: 13 April 2012 5:11am), Community Member, 1 Post


I am completely new to silver stripe i just want to knw how can i query and get the email address from member table using DataObject::get()



13 April 2012 at 6:56pm Forum Moderator, 5511 Posts

Which member are you trying to get? If you want to get the email address of the currently logged in member then you can do

$member = Member::currentUser();
// $member->Email;

or in the template