- emailframework.zip
- EmailFramework
- EmailFramework.dll
- EmailFramework
- EmailFramework
- EmailFrameworkKey.snk
- EmailLog.txt
- EmailTemplate
- EmailTemplateParser.dll
- EmailTemplateParser.snk
- gacutil.exe
- Install_Assembly_In_GAC.bat
- 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.