This is example method to send data in Kentico 8.xx
Send email method
using CMS.EmailEngine;
using CMS.EventLog;
:::
:::
public static class CustomClass
{
public static void SendEmail(string EmailTemplateCode, MacroResolver mcr,string recipients)
{
EmailMessage msg = new CMS.EmailEngine.EmailMessage();
EmailTemplateInfo eti = EmailTemplateProvider.GetEmailTemplate(EmailTemplateCode, SiteContext.CurrentSiteID); ...
Monday, 9 February 2015
Turn off EventLogProvider from store update / delete / insert activity in Kentico
The event log stores information about all events that occur in the system. It is useful to view logged information if unwanted behavior occurs in the system and you want to find out where the problem originates or get additional details.
But, some activities you don't want to be stored in database while you are developing Custom Webpart . This is the way how to turn off the for a while in your custom code block.
Step by Step
Add "using CMS.Base;"
Wrap your code block with this using block code.
using (CMSActionContext...
|
Mohd Zulkamal Founder of developersnote.com, love programming and help others people. Work as Software Developer. Graduated from UiTM and continue study in Software Engineering at UTMSpace. Follow him on Twitter , or Facebook or Google+ . |
Powered by Blogger.