Sending an email from inside an event sink - possible?

C

CodeRazor

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
 
I

Ignacio Machin ( .NET/ C# MVP )

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
 
C

CodeRazor

...... (!) 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.....)
 
I

Ignacio Machin ( .NET/ C# MVP )

..... (!) 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.
 
C

CodeRazor

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

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

CodeRazor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top