Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads
 
Add your own
alternative version

Invoke .Net Assembly using SSIS:Email Framework

, 21 Oct 2008
This article demonstrate use of SSIS package that helps in invoking .Net Assembly having email component in it.
EmailFramework.zip
EmailFramework
EmailFramework
EmailFramework
bin
Debug
EmailFramework.dll
EmailTemplateParser.dll
EmailFrameworkKey.snk
Properties
EmailFramework.dll
EmailFrameworkKey.snk
EmailTemplate
EmailTemplateParser.dll
EmailTemplateParser.snk
gacutil.exe
NotifyCreditCardDue_Activex_SSIS_PKG
NotifyCreditCardDue_Activex_SSIS_PKG.dtsx
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Xml;
namespace EmailFramework
{
    public class NotificationManager
    {
        private static IDictionary<string, string> configSettings = new Dictionary<string, string>(); 
        static NotificationManager()
        {                 
            XmlDocument xmlDocument = new XmlDocument();
            xmlDocument.Load("D:/EmailFramework/EmailFramework/EmailFramework/app.config"); 
            XmlNodeList nodeList = xmlDocument.SelectNodes("configuration/appSettings/add"); 
            int index = 0;

            foreach (XmlNode node in nodeList)
            {
                string key = node.Attributes.GetNamedItem("key").Value;
                string value = node.Attributes.GetNamedItem("value").Value;
                configSettings.Add(key, value);
                index += 1;
            }
        }
        public static void NotifyDueForCreditPayment()
        {
            MailContent mailContent=new MailContent();
            try
            {
                mailContent.MailTo = "santosh.poojari@accenture.com";
                mailContent.MailFrom = "santosh.poojari@accenture.com";
                mailContent.Subject = "THIS TEST MAILER";
                //Body Content 
                Hashtable templatePlaceHolder = new Hashtable();
                templatePlaceHolder.Add("To", "santosh Poojari");
                templatePlaceHolder.Add("Credit_Card_Number",104562321373263 );
                templatePlaceHolder.Add("Due_Date", DateTime.Now);
                mailContent.IsBodyHTML = true;
                mailContent.MessagePriority = 1;
                mailContent.MessageText = string.Empty;
                EmailServices.SendRegisterNotification(mailContent, templatePlaceHolder, configSettings["ET_DueForCreditPayment"]);
            } 
            catch
            {
            }
        }
        public static void NotifyCreditCardExpiry()
        {

        }
        public static void NotifyApplicationForAddOnCard()
        {

        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

santosh poojari
Technical Lead
India India
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

| Advertise | Privacy | Mobile
Web02 | 2.8.140821.2 | Last Updated 22 Oct 2008
Article Copyright 2008 by santosh poojari
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid