public void PostToMailingList() { Mailer mailer = TypedConfiguration.Instance.Mailer; mailer.To = TypedConfiguration.Instance.MailTo; mailer.From = string.Format(TypedConfiguration.Instance.MailFrom, LookInfo.Author); mailer.SmtpHost = TypedConfiguration.Instance.MailServer; mailer.SmtpServerPort = TypedConfiguration.Instance.SmtpServerPort; mailer.SmtpAuthType = TypedConfiguration.Instance.SmtpAuthType; mailer.SmtpAuthUsername = TypedConfiguration.Instance.SmtpAuthUsername; mailer.SmtpAuthPassword = TypedConfiguration.Instance.SmtpAuthPassword; // hack for the SharpDevelop commit hook string mailingSubjectFormatString = InferSubjectFormatString(); mailer.Subject = String.Format(mailingSubjectFormatString, Revision, LookInfo.Author); MessageFormatter formatter = new TextMessageFormatter(); formatter.Format(mailer, this); if (!TypedConfiguration.Instance.MailTextOnly) { formatter = new HtmlMessageFormatter(); formatter.Format(mailer, this); } try { mailer.Send(); } catch (Exception e) { log.Error("Mailing commit message failed fatally", e); } }