Trapping an email sent from a device

J

Jordi Rico

Hi,
I'm facing a problem I don't know how to solve. We have an IP camera
with motion detect. This camera can be configured to send an email
when it detects any movement. Well, the problem is I need to catch
this email sending from a program so I can do some actions. It is, I
can't wait to the email to be received in a server or whatelse, I need
catching the data sent over the local network.
I don't know how an email is sent over the network, and also I don't
know if I can listen to a port in this camera and read email data to
act immediatly...
Thanks in advance for any help...
 
S

Stefan Hoffmann

hi Jordi,

Jordi said:
when it detects any movement. Well, the problem is I need to catch
this email sending from a program so I can do some actions. It is, I
can't wait to the email to be received in a server or whatelse, I need
catching the data sent over the local network.
Use an extra SMTP service, then this server can trigger easily your action.

Otherwise you need to implement it yourself, e.g.:

http://www.ericdaugherty.com/dev/cses/developers.html


mfG
--> stefan <--
 
J

Jordi Rico

Thanks, I'll put an eye on it.
If I don't find anything else, i'll try by implementing an SMTP server
on my program, but my thoughts were more in listening to some port on
the device. The only reason is speed. I need to detect the movement as
fast as posible, and the time between detecting movement and receiving
an email is too big to asume... this is why I'm interested in reading
the port, because I know that the email is sent immediatily, but
receiving it on time is something more imprecise...
 
S

Stefan Hoffmann

hi Jordi,

Jordi said:
If I don't find anything else, i'll try by implementing an SMTP server
on my program, but my thoughts were more in listening to some port on
the device. The only reason is speed.
Then this camera is imho not the best choice.
this is why I'm interested in reading
the port, because I know that the email is sent immediatily, but
receiving it on time is something more imprecise...
Instead if implementing a fully featured SMTP server you need a simple
TCP/IP server, which triggers your action when the camera creates a
connection. As this requires a full TCP/IP handshake, it is not the
fastest way.

The fastes way would by some kind of listening to a raw socket, but I
don't know if this makes sense in C#, see:

http://discuss.joelonsoftware.com/default.asp?design.4.326115.9

Can the camera send UDP packets? I would take a look at the specs...


mfG
--> stefan <--
 
J

Jordi Rico

Thanks for your help
I'll look this webs to try to see the light :)
And the camera... I have no choice, must be this camera... is a
Trendnet TV-IP110 and I don't really like it (Axis are much better)
but it doesn't depend on us...
 
D

developerzero

Thanks for your help
I'll look this webs to try to see the light :)
And the camera... I have no choice, must be this camera... is a
Trendnet TV-IP110 and I don't really like it (Axis are much better)
but it doesn't depend on us...








- Show quoted text -

Why exactly do you need to capture the input? It looks like the camera
can do a lot by itself. Do note: to send an e-mail, the camera
requires both an active internet connection and an SMTP-compatible e-
mail server (either your own, or one that offers SMTP access, such as
most non-free ones or gmail).

You can find a manual here if you don't have one:
http://www.trendnet.com/downloads/list_subcategory.asp?SUBTYPE_ID=1171

One suggestion: if you just need to be notified, you can have it e-
mail the notice to your cellphone via SMS. If you tell it to e-mail to
the correct e-mail address (something like <10-digit phone
number>@<phone provider>.com), you should get a SMS message right away.
 

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