|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Trapping an email sent from a deviceHi,
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... hi Jordi,
Jordi Rico wrote: > when it detects any movement. Well, the problem is I need to catch Use an extra SMTP service, then this server can trigger easily your action.> 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. Otherwise you need to implement it yourself, e.g.: http://www.ericdaugherty.com/dev/cses/developers.html mfG --> stefan <-- 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... On 10 dic, 10:44, Stefan Hoffmann <ste***@ste5an.de> wrote: Show quoteHide quote > hi Jordi, > > Jordi Rico wrote: > > 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 <-- hi Jordi,
Jordi Rico wrote: > If I don't find anything else, i'll try by implementing an SMTP server Then this camera is imho not the best choice.> on my program, but my thoughts were more in listening to some port on > the device. The only reason is speed. > this is why I'm interested in reading Instead if implementing a fully featured SMTP server you need a simple > the port, because I know that the email is sent immediatily, but > receiving it on time is something more imprecise... 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 <-- 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... On 10 dic, 11:41, Stefan Hoffmann <ste***@ste5an.de> wrote: Show quoteHide quote > hi Jordi, > > Jordi Rico wrote: > > 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 <-- On Dec 10, 3:06 am, Jordi Rico <jordir***@gmail.com> wrote:
Show quoteHide quote > Thanks for your help Why exactly do you need to capture the input? It looks like the camera> 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... > > On 10 dic, 11:41, Stefan Hoffmann <ste***@ste5an.de> wrote: > > > > > hi Jordi, > > > Jordi Rico wrote: > > > 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 <--- Hide quoted text - > > - Show quoted text - 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.
Other interesting topics
Serializing / Deserializing XML using System.Xml.Serialization
Problems editing datatable stored in viewstate reflection, GetType() How to create what VB6 calls an 'ActiveX EXE' Sanity check on call to imported DLL function Reading (Icon) Resource from a Binary file,... RegEx: Remove all characters except [0-9]+ Disorted Images in data grid view I need help with writing || operator Help splitting up and processing Textbox data .. for each and unknown numbe of tokens ?? |
|||||||||||||||||||||||