public class ApplyMailSettings { public string Host { get { return Sitecore.Configuration.Settings.MailServer; } } public void Process(ProcessMessageArgs args) { args.Host = Host; } } and in your config include: <processMessage>     <processor type="Extensions.Forms.Pipelines.ApplyMailSettings, Extensions.Forms" method="Process" patch:before="processor[@method='SendEmail']"/> </processMessage> Idea from here