Jump to:

22972 Posts in 11596 Topics by 2824 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: 256 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
    5462 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

    256 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.