Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Issue in title. I've just get an Id as:
var cs = ApplicationContext.Current.Services.ContentService; var item = cs.GetById(nodeId); var email = item.CreatorId;
CreatorId is the Id of a User, not a member.
Fetching the user email, could be done like this:
var contentId = 0; var content = ApplicationContext.Services.ContentService.GetById(contentId); var user = ApplicationContext.Services.UserService.GetUserById(content.CreatorId); var userEmail = user.Email;
ApplicationContext.Current.Services.UserService.GetUserById
Hi Aleksey,
Just as a side note.
With Umbraco we have 2 types of users:
User: these are the backoffice users. They can login into the backend, add changes and so on.
Members: these are the frontend users. They can login into your website but do not have any rights to login in the backend of your Umbraco.
/Michaël
Sorry and thanks for note.
I need a mail address of User
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How get email of member by creator Id?
Issue in title. I've just get an Id as:
CreatorId is the Id of a User, not a member.
Fetching the user email, could be done like this:
ApplicationContext.Current.Services.UserService.GetUserById
Hi Aleksey,
Just as a side note.
With Umbraco we have 2 types of users:
User: these are the backoffice users. They can login into the backend, add changes and so on.
Members: these are the frontend users. They can login into your website but do not have any rights to login in the backend of your Umbraco.
/Michaël
Sorry and thanks for note.
I need a mail address of User
is working on a reply...