Esempio n. 1
0
        }         // Add

        public void Add(Addressee addr)
        {
            if (addr == null)
            {
                return;
            }

            if (!addr.IsValid)
            {
                return;
            }

            m_oAddressees.Add(addr);
        }         // Add
Esempio n. 2
0
        }         // SendMailViaMandrill

        private void AddSalesForceActivity(DateTime now, MailMetaData oMeta, Addressee addr)
        {
            try {
                new AddActivity(addr.UserID, new ActivityModel {
                    StartDate     = now,
                    EndDate       = now,
                    Description   = oMeta.TemplateName,
                    Email         = addr.Recipient,
                    Origin        = addr.Origin,
                    Originator    = "System",
                    Type          = ActivityType.Email.ToString(),
                    IsOpportunity = false,
                }).Execute();
            } catch (Exception ex) {
                Log.Error(ex, "Failed to SF add activity to {0}", addr.Recipient);
            }     // try
        }         // AddSalesForceActivity