コード例 #1
0
ファイル: MailMan.cs プロジェクト: jkresner/Climbfind_v3_2009
 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)
     });
 }
コード例 #2
0
ファイル: MailMan.cs プロジェクト: jkresner/Climbfind_v3_2009
 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)
     });
 }