Jump to:

23480 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » email address

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

Page: 1
Go to End
Author Topic: 395 Views
  • Nick132
    Avatar
    Community Member
    1 Post

    email address Link to this post

    Hi,

    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()

    Thanks

  • Willr
    Avatar
    Forum Moderator
    5502 Posts

    Re: email address Link to this post

    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

    $CurrentMember.Email

    395 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.