By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,918 Members | 1,923 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,918 IT Pros & Developers. It's quick & easy.

Sending an email from inside an event sink - possible?

P: n/a
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
Sep 2 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Sep 2, 10:03*am, CodeRazor <CodeRa...@discussions.microsoft.com>
wrote:
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
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
Sep 2 '08 #2

P: n/a
...... (!) 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.....)
Sep 2 '08 #3

P: n/a
On Tue, 02 Sep 2008 07:36:16 -0700, CodeRazor
<Co*******@discussions.microsoft.comwrote:
..... (!) 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 (!)
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.
Next you'll tell me to try googling for an answer .... (like i hadn't
already thought of that.....)
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
Sep 2 '08 #4

P: n/a
On Sep 2, 10:36*am, CodeRazor <CodeRa...@discussions.microsoft.com>
wrote:
..... (!) 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.....)
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.
Sep 2 '08 #5

P: n/a
so, theoretically it is possible -- that's what i was after.

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

CodeRazor

Sep 10 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.