Sending an email from inside an event sink - possible?

Sending an email from inside an event sink - possible?

Post by Q29kZVJhem » Wed, 03 Sep 2008 23:03:00


I have an event sink which does some work to the software we use, according
to the data contained within an email. This is all working hunky dory.

What i want to know is whether it is possible to send an email from inside
of an event sink. So for example an email comes into the event sink, and then
the event sink generates a new email which it then sends.

The reason I ask this is because the event sink code sits on the exchange
server....so i'm not sure if this causes any complications.

Many thanks.

coderazor
 
 
 

Sending an email from inside an event sink - possible?

Post by .NET/ C# » Wed, 03 Sep 2008 23:13:15

On Sep 2, 10:03燼m, CodeRazor < XXXX@XXXXX.COM >


Hi,

Just try it :).

I think it's the best test if it going to work or if it going to go
into a recursive loop

 
 
 

Sending an email from inside an event sink - possible?

Post by Q29kZVJhem » Wed, 03 Sep 2008 23:36:16

..... (!) That sort of answer is just exasperating.... (!)

I was asking in case someone already knew the answer..... certainly that's
the whole point of these message boards (!)

Next you'll tell me to try googling for an answer .... (like i hadn't
already thought of that.....)
 
 
 

Sending an email from inside an event sink - possible?

Post by Peter Duni » Thu, 04 Sep 2008 01:57:07

On Tue, 02 Sep 2008 07:36:16 -0700, CodeRazor



All due respect, Ignacio gave you the best answer possible given that you
haven't told us anything at all about how your code is constructed, never
mind have you posted a concise-but-complete code sample.

The answer to your question depends on whether the code that raises the
event is somehow called from the code that is handling the event. If it
is, then recursion could occur. If it isn't, then it can't.

Since you haven't described either the code that raises the event _or_ the
code that handles it, it's not possible for anyone reading your question
to answer it any better than Ignacio already did.


Google is always a good place to start, but I don't think Google knows
anything more about your code than we do. It probably wouldn't have been
useful in this case, unless you provided it with more detail in your
search query than you've provided here.

Pete
 
 
 

Sending an email from inside an event sink - possible?

Post by .NET/ C# » Thu, 04 Sep 2008 03:49:48

On Sep 2, 10:36燼m, CodeRazor < XXXX@XXXXX.COM >


Well, you have no posted any code nor given details about your
"problem". So I asummed that the only possible cause of error would be
a recursive loop.

Personally I only post when I found a problem, I try to do something
and is not working or have no idea how to do it. It saves me time and
I can get a better idea of where the problem might be.
 
 
 

Sending an email from inside an event sink - possible?

Post by Q29kZVJhem » Thu, 11 Sep 2008 19:46:01

so, theoretically it is possible -- that's what i was after.

Thanks for the explanation of how/why recursion may occur.

CodeRazor