The Best Listen On The Net Web site

  Listen On The Net
If you are truly interested in the very best in talkers magazine then be sure you click the link above. We have researched the talkers magazine subject extensively and can guarantee that the people have the best.

The talkers magazine links on the left side of this page will take you directly to the specific item you need so look around. We have made it easy for you and of course this company stands behind their talkers magazine with total satisfaction guarantees. Microsoft CRM Customization: MS Exchange Transport SMTP Event Sink

 by: Boris Makushkin

Microsoft CRM has variety of customizations options and tools. The official and the most popular is Microsoft CRM SDK: collection of C#.Net and partially VB.Net classes, methods and code samples. Here we would like to give you more complex case, when you call CRM SDK customization from custom MS Exchange event handler – we are improving the functionality of MS Exchange – MS CRM connector.

Imagine the case when you want outgoing email to be captured and placed into CRM, attached to Contact, Account or Lead they should belong to. If this is realized – your salespeople can use any email tool to send their messages, they do not have to do it in CRM or Outlook Client for CRM.

MS Exchange OnSyncSave database event can't work with Sent folder – it doesn't fire when message goes to Sent folder. The reason is described here:

PRB: Store Events Do Not Fire on the Outbox or Sent Item Folders

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q297274

Please, see SMTP Event Sink example in this article: http://support.microsoft.com/default.aspx?scid=kb;en-us;317327. Event handler works OnArrival event:

void ISMTPOnArrival.OnArrival(CDO.IMessage msg, ref CDO.CdoEventStatus EventStatus)

{

log = LogManager.GetLogger(typeof(ShieldsUp));

DOMConfigurator.Configure(new FileInfo(Environment.SystemDirectory + "/CustomerApp/log.config"));

try {

ProcessMessage(msg);

}

catch (Exception ex) {

log.Debug(ex.Message + "\n" + ex.StackTrace);

}

finally {

LogManager.Shutdown();

}

}

The class:

// ComVisible enables COM visibility of this class. The default is true.

// Explicitly setting this attribute to true, as shown below, is useful

// if ComVisible is set to false for the namespace and you want the

// classes to be accessible individually.

[ComVisible(true)]

public class ShieldsUp: CDO.ISMTPOnArrival

{

Next the handling works similar to SyncSave handler:

private void ProcessMessage(CDO.IMessage msg)

{

string sFrom;

string sTo;

string sSubject;

string sBody;

string sSensitivity;

try

{

log.Debug("Firing Up ProcessMessage()");

sSubject = msg.Subject;

sBody = msg.TextBody;

sFrom = msg.From;

sTo = msg.To;

if (msg.Fields["urn:schemas:mailheader:sensitivity"].Value != null)

sSensitivity = msg.Fields["urn:schemas:mailheader:sensitivity"].Value.ToString();

else

sSensitivity = "Normal";

log.Debug("Message From: " + sFrom);

log.Debug("Message To: " + sTo);

log.Debug("Subject: " + sSubject);

log.Debug("Sensitivity: " + sSensitivity);

log.Debug("Body: " + sBody);

In deployment you should consider the following – the handler will work only in the case of SMTP protocol delivery. If you use Outlook or Outlook Web Access, then delivery uses MAPI and OnArrival doesn't fire. Please see this article: http://support.microsoft.com/default.aspx?scid=kb;en-us;273233

The elegant fix is two SMTP gateways, find it here http://support.microsoft.com/default.aspx?scid=kb;en-us;Q288756

About The Author

Boris Makushkin is Lead Developer in Alba Spectrum Technologies – USA nationwide Great Plains, Microsoft CRM customization company, based in Chicago, California, Colorado, Arizona, New York, Texas, Florida, Georgia and having locations in multiple states and internationally (www.albaspectrum.com), he is Microsoft CRM SDK, Transact SQL, C#.Net, Crystal Reports and VB.Net developer. Boris can be reached: 1-866-528-0577, borism@albaspectrum.com.

talkers magazine - WDBZ's Mr.
tours talk radio - WDBZ's Mr.
travel talk radio - WDBZ's Mr.
listen to free music - WDBZ's Mr.
listen to music - WDBZ's Mr.
listen to radio online - WDBZ's Mr.

WDBZ's Mr. Listen On The Net WDBZ's Mr. Listen On The Net WDBZ's Mr. Listen On The Net WDBZ's Mr. Listen On The Net WDBZ's Mr. Listen On The Net WDBZ's Mr. Listen On The Net

Home | Site Map | listen to radio online | talkers magazine | tours talk radio | travel talk radio | listen to free music | listen to music | | |

Sign up for PayPal and start accepting credit card payments instantly.

Main Menu
Listen On The Net
Site Resources

Free Tell A Friend from Bravenet.com

News for 09-Mar-10

Source: BBC News | News Front Page | World Edition
Britons disappointed at Oscars

Source: BBC News | News Front Page | World Edition
Greek woes 'unlikely to spread'

Source: BBC News | News Front Page | World Edition
Man who shopped for N Korea's leaders reveals Kim's whims

Source: BBC News | News Front Page | World Edition
Probe may have found cosmic dust

Source: BBC News | News Front Page | World Edition
Drug scam hijacks college sites

Source: BBC News | News Front Page | World Edition
EU considers general carbon tax

Source: BBC News | News Front Page | World Edition
Ferguson rejects Red Knights link

Source: BBC News | News Front Page | World Edition
Two dead teenage soldiers named

Source: BBC News | News Front Page | World Edition
India to reintroduce women's bill

Source: BBC News | News Front Page | World Edition
UN chief visits Chile quake city

Search the Web
listen to radio online
talkers magazine
tours talk radio
travel talk radio
listen to free music
listen to music





Last Updated: Tuesday, 09-Mar-2010 00:04:54 MST
Copyright © 2004 :: Listen On The Net
Kids Meet :: Fantasy Baseball Online :: Medical Meetings :: MD News

Listen On The Net

Take Medicine Correctly   Internet Meetings   Take Your Meds