Beispiel #1
0
 public static void SendFeedPostIntroductionNotificationEmail(ClimberProfile userReceivingNotification,
     ClimberProfile userPosting, FeedClimbingPost post, string placeName)
 {
     SMTP.PostSingleMail(new CFEmail
     {
         Body = CFEmailBodyGenerator.GenerateFeedIntroductionPostNotificationBody(placeName,
             userPosting.FullName, userPosting.ID, userReceivingNotification.Email, post.Message, post.ID),
         From = CFSettings.MailMan,
         Subject = string.Format("New climber @ {0}", placeName),
         To = new MailAddress(userReceivingNotification.Email, userReceivingNotification.FullName)
     });
 }
Beispiel #2
0
 public static void SendPartnerFeedPostNotificationEmail(ClimberProfile userReceivingNotification,
     ClimberProfile userPosting, FeedClimbingPost post, string placeName)
 {
     SMTP.PostSingleMail(new CFEmail
     {
         Body = CFEmailBodyGenerator.GenerateFeedPartnerPostNotificationBody(placeName, post.ClimbingDateTime,
             userPosting.FullName, userReceivingNotification.Email, post.Message, post.ID),
         From = CFSettings.MailMan,
         Subject = string.Format("{0}'s post for {1} @ {2}", userPosting.FullName, post.ClimbingDateTime.ToCFDateString(), placeName),
         To = new MailAddress(userReceivingNotification.Email, userReceivingNotification.FullName)
     });
 }