protected override Instruction CreateInstruction(Dictionary<string, string> attributes)
 {
     var mailInstruction = new MailInstruction();
       mailInstruction.Body = attributes.GetValueOrDefault("Body", String.Empty);
       mailInstruction.BodyTemplateFile = attributes.GetValueOrDefault("BodyTemplateFile", String.Empty);
       mailInstruction.BccMailAddresses = attributes.GetValueOrDefault("BccMailAddresses", String.Empty);
       mailInstruction.CcMailAddresses = attributes.GetValueOrDefault("CcMailAddresses", String.Empty);
       mailInstruction.FromMailAddress = attributes.GetValueOrDefault("FromMailAddress", String.Empty);
       mailInstruction.ReplyToMailAddress = attributes.GetValueOrDefault("ReplyToMailAddress", String.Empty);
       mailInstruction.Subject = attributes.GetValueOrDefault("Subject", String.Empty);
       mailInstruction.ToMailAddresses = attributes.GetValueOrDefault("ToMailAddresses", String.Empty);
       return mailInstruction;
 }
Esempio n. 2
0
        protected override Instruction CreateInstruction(Dictionary <string, string> attributes)
        {
            var mailInstruction = new MailInstruction();

            mailInstruction.Body = attributes.GetValueOrDefault("Body", String.Empty);
            var bodyTemplateFile = attributes.GetValueOrDefault("BodyTemplateFile", String.Empty);

            mailInstruction.BodyTemplateFile   = Environment.ExpandEnvironmentVariables(bodyTemplateFile);
            mailInstruction.BccMailAddresses   = attributes.GetValueOrDefault("BccMailAddresses", String.Empty);
            mailInstruction.CcMailAddresses    = attributes.GetValueOrDefault("CcMailAddresses", String.Empty);
            mailInstruction.FromMailAddress    = attributes.GetValueOrDefault("FromMailAddress", String.Empty);
            mailInstruction.ReplyToMailAddress = attributes.GetValueOrDefault("ReplyToMailAddress", String.Empty);
            mailInstruction.Subject            = attributes.GetValueOrDefault("Subject", String.Empty);
            mailInstruction.ToMailAddresses    = attributes.GetValueOrDefault("ToMailAddresses", String.Empty);
            return(mailInstruction);
        }