protected void CommentPosted(object sender, CommentPostedArgs e) { if (!Blog.User.IsLoggedOn) { Email.NotifyBlogPost.Send(Blog.User, FudgeUser.FirstName + " commented on your blog post!", FudgeUser.FirstName, e.Post.Topic.Title, e.Post.Message, Blog.UrlName, e.Post.Topic.TopicId); } }
protected void OnCommentPosted(object sender, CommentPostedArgs e) { if (!CurrentUser.IsLoggedOn) { Notification.Notify(Notification.StackPost(CurrentUser.UserId)); Email.NotifyStackPost.Send(CurrentUser, FudgeUser.FirstName + " pushed a comment on your stack!", FudgeUser.FirstName, e.Post.Message); } }
protected void OnCommentPosted(object sender, CommentPostedArgs e) { foreach (var u in Team.Members) { if (u.UserId != FudgeUser.UserId && u.IsSubscribedTo(Team.TopicId)) { Email.NotifyTeamPost.Send(u, FudgeUser.FirstName + " left a message on " + Team.Name + "' Message Pump", FudgeUser.FirstName, Team.Name, e.Post.Message, Team.TeamId); } } }
protected void CommentPosted(object sender, CommentPostedArgs e) { if (!Run.User.IsLoggedOn) { //notify the user Notification.Notify(Notification.SourcePost(Run.RunId)); } foreach (var s in Run.Topic.TopicSubscriptions) { if (Run.UserId != s.UserId) { string subject = Run.User.FirstName + " replied to your post!"; //Email.NotifyTopicReply.Send(s.User, subject, s.User.FirstName, "his source"); } } }