IIS and SMTP - Duplicating message in SMTP Server Event Sink

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > June 2004 > Duplicating message in SMTP Server Event Sink





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Duplicating message in SMTP Server Event Sink
Nigel Whatling

2004-06-28, 8:55 am

Looking for some help again.

I have an event sink that is notified on OnTransportSubmission events.
The sink then passes the message content to a COM object (which I have
written) to process. The object then returns the processed message
content and the original message object is modified.

This works fine. However, I want to be able to process the message
content differently for each recipient. That would mean duplicating the
original message object and related content for each SMTP recipient and
then processing each one.

I initially thought that I would be able to do this with the
IMailMsgProperties::ForkForRecipients method. This method gave me
another IMailMsgProperties interface. But there was no content attached
to it.

I am still trying to figure out some of the other methods to see if they
can help. Specifically, I'm trying to figure out how to get the
IMailMsgStoreDriver interface from the message.

If anyone has done something like this before and is willing to share
their knowledge, it would save me a lot of time.

Thanks,
Nigel


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com