Exemplo n.º 1
0
        public static IEmailMessenger InitMessengerForUserCreate(IUser user)
        {
            var messenger = MessengerService.InitMessenger();

            messenger.Subject = "Epiworx Notification - Welcome to Epiworx!";
            messenger.Message = string.Format("Welcome {0} to Epiworx! Your account has been successfully created!",
                                              user.Name);

            messenger.Recipients.Add(user.Email);

            return(messenger);
        }