private string GetBody(TeamMailboxNotificationType type)
		{
			string text = string.Empty;
			string text2 = this.tm.DisplayName;
			text2 = text2.Replace("<", "&lt;");
			text2 = text2.Replace(">", "&gt;");
			string str;
			if (this.tm.SharePointUrl == null)
			{
				str = ServerStrings.TeamMailboxMessageNotConnectedToSite;
			}
			else
			{
				string str2 = this.tm.SharePointUrl.ToString();
				str = TeamMailboxNotificationHelper.GetLink(this.tm.SharePointUrl, str2);
			}
			string link = TeamMailboxNotificationHelper.GetLink("mailto:" + this.tmSmtpAddress, this.tmSmtpAddress);
			switch (type)
			{
			case TeamMailboxNotificationType.Closed:
				text = string.Format("<P>{0}</P>", ServerStrings.TeamMailboxMessageClosedBodyIntroText);
				text += string.Format("<P><B>{0}</B></P>\r\n                            <UL>\r\n                                <LI>{1}</LI>\r\n                                <LI>{2}</LI>\r\n                                <LI>{3}</LI>\r\n                            </UL>", new object[]
				{
					ServerStrings.TeamMailboxMessageWhatYouCanDoNext,
					ServerStrings.TeamMailboxMessageNoActionText,
					ServerStrings.TeamMailboxMessageReactivatingText,
					ServerStrings.TeamMailboxMessageLearnMore + TeamMailboxNotificationHelper.GetLink(TeamMailboxNotificationHelper.HelpLinkReactivateClosedTeamMailboxes, ServerStrings.TeamMailboxMessageReopenClosedSiteMailbox)
				});
				text += string.Format("<P><B>{0}</B></P>\r\n                            <UL>\r\n                                <LI>{1}</LI>\r\n                                <LI>{2}</LI>\r\n                            </UL>", ServerStrings.TeamMailboxMessageSiteAndSiteMailboxDetails, ServerStrings.TeamMailboxMessageGoToTheSite + str, ServerStrings.TeamMailboxMessageSiteMailboxEmailAddress + link);
				break;
			case TeamMailboxNotificationType.Reactivated:
				text = string.Format("<P>{0}</P>", ServerStrings.TeamMailboxMessageReactivatedBodyIntroText);
				text += string.Format("<P><B>{0}</B></P>\r\n                            <UL>\r\n                                <LI>{1}</LI>\r\n                                <LI>{2}</LI>\r\n                            </UL>", ServerStrings.TeamMailboxMessageWhatYouCanDoNext, ServerStrings.TeamMailboxMessageGoToTheSite + str, ServerStrings.TeamMailboxMessageSendMailToTheSiteMailbox + link);
				break;
			case TeamMailboxNotificationType.MemberInvitation:
			case TeamMailboxNotificationType.Welcome:
				text = string.Format("<P>{0}</P>", string.Format(ServerStrings.TeamMailboxMessageMemberInvitationBodyIntroText, link, TeamMailboxNotificationHelper.GetLink(this.tm.SharePointUrl, text2)));
				text += string.Format("<P>{0}</P>", ServerStrings.TeamMailboxMessageToLearnMore + TeamMailboxNotificationHelper.GetLink(TeamMailboxNotificationHelper.HelpLinkLearnMoreWhatAreTeamMailboxes, ServerStrings.TeamMailboxMessageWhatIsSiteMailbox));
				break;
			}
			return string.Format("<html><body><font face='Segoe UI'>{0}</font></body></html>", text);
		}
		private string GetSubject(TeamMailboxNotificationType type)
		{
			string result = string.Empty;
			switch (type)
			{
			case TeamMailboxNotificationType.Closed:
				result = ServerStrings.TeamMailboxMessageClosedSubject(this.tm.DisplayName);
				break;
			case TeamMailboxNotificationType.Reactivated:
				result = ServerStrings.TeamMailboxMessageReactivatedSubject(this.tm.DisplayName);
				break;
			case TeamMailboxNotificationType.MemberInvitation:
				result = ServerStrings.TeamMailboxMessageMemberInvitationSubject(this.tm.DisplayName);
				break;
			case TeamMailboxNotificationType.Welcome:
				result = ServerStrings.TeamMailboxMessageWelcomeSubject(this.tm.DisplayName);
				break;
			}
			return result;
		}
		public List<Exception> SendNotification(IList<ADObjectId> recipients, TeamMailboxNotificationType type)
		{
			return this.SendNotification(recipients, this.GetSubject(type), this.GetBody(type), RemotingOptions.LocalConnectionsOnly);
		}