473,511 Members | 10,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending an email from inside an event sink - possible?

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
5 1277
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
...... (!) 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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1358
by: BlueMonkMN | last post by:
I've been trying to think of the right way to design relationships between objects with different desired lifetimes that raise events. If an event source is a relatively permanent object and the...
0
3620
by: Notlwonk | last post by:
I have written an event sink in C# that hooks into our Exchange Server 2000 store. The sink fires and the various LOG files are created, but for some reason I cannot seem to read-in the e-mail...
1
1938
by: Bob Whiton | last post by:
I have an unmanaged class which has a member variable: gcroot<DataTable*> myDataTable; I would like to sink the RowDeleting event in my UNmanaged class. However, I can't declare an event...
0
1916
by: Arnaud Debaene | last post by:
Hello all. I've got a bunch of existing, non managed, C++ DLLs that export types with, among other things, public events implemented using the boost::signals library. Now, I need to have...
0
1380
by: techie | last post by:
I have created an event sink in my ATL COM project. The event sink receives events from a C# component. There is no problem with receving events but when my COM object is released I get an access...
6
1776
by: Charles Law | last post by:
I have a class, which implements an interface. Let's say, that the interface looks something like Public Interface IEventSinks Sub ValueChanged(sender As Object, e As ValueChangedEventArgs) Sub...
7
5126
by: Don | last post by:
Getting errors after following the MSDN article on using VB.NET (and VS2005) for "Implementing a Managed OnSave Event Sink" for Exchange Server 2007. Not sure, but part of the problem may be that...
9
3601
by: Eric Kaplan | last post by:
I have a function that will download XML from internet and load XML data into database. The function will take 5 - 20 minutes to finish. I heard I should use event sink (event listener) when...
1
3207
by: mooni | last post by:
Hi all, I am trying to create a class that will act as event sink to a COM object. Just to tell you the COM object is SoftUSBEndpoint which is part of Device Simulation Framework. Anyways its...
0
7245
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.