Can I read mail using C++/CLI? - email

I can send mail using SmtpClient class, but are there any classes that allow reading mails? I tried to find something out, but it wasn't sucsessfull.

Maybe others can correct me but SmtpClient class is C# and not C++ right?
I don't know how up-to-date it is but here is EmailArchitect's tutorial for "Retrieve Email and Parse Email in C++/CLI/CLR. It looks like it uses EmailArchitect's binary so it's unfortunate but it could be a paid route.
Another way could be researching the libcurl/curl/cURL route which supports multiple protocols and have many examples online (though I haven't checked them out myself).

Related

SMTP without IMAP/POP communication

I would like to know if it's possible to use SMTP protocol to receive emails. In other words I'm not able to use IMAP or POP protocols because of some internal regulations of a company. If it's possible, could someone give me some example of how to do it? If not, is there a way to implement email receiver using other technologies? Thank you
Yes, this is possible. In fact, the SMTP protocol was designed explicitly for the purpose of sending and receiving emails. The wikipedia page has some examples of email sent using the SMTP protocol: https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol
If you are looking for source code to use as an example, I suggest trying GitHub: there are lots of SMTP projects in a variety of languages.
If you just need a working implementation, Microsoft Exchange is very popular. There are also popular open source projects like Postfix, which you can download for free.

Automatically Send an Email when Exception is raised in asp.net MVC2

I am trying to come up with a way to email a dev team when an exception occurs on a web page that I am developing. I heard of ELMAH, but I was hoping to use an internal Microsoft library to try and do that. I thought I saw an article online with a library, but I can't seem to find it (saw it last Friday and I can't seem to find it). If you could even point me to a tutorial of some kind, then I would appreciate it.
many logging frameworks are capable of sending an email on a logged exception.
MS wrote the Enterprise Library: use the email trace listener
Enterprise Library: Logging Block and Email
or you can use a 3rd party such as log4net : smtp appender
http://logging.apache.org/log4net/release/config-examples.html
Elmah is not MS but here is a tutorial for that
http://www.storm-consultancy.com/blog/development/tools-plugins/setup-email-alerts-from-elmah-when-exceptions-are-raised/
enjoy
I don't see any problem using ELMAH, it is very stable.
Here is a good post to handle the error and send email:
http://www.codecapers.com/post/Error-Handling-in-MVC-with-ELMAH.aspx

Existing pubsubhubbub ajax proxy/bridge? (Like Google Feeds API v2 with Push)

I'm looking for a server side component, preferably java, that will allow me to subscribe to pubsubhubbub feeds through javascript. I understand that subscribers are server side applications in the standard rest/pubsubhubbub format, but Google seems to have created a ajax bridge that looks quite handy.
Unfortunately, I'm dealing with data that simply cannot leave our servers, let alone go through Google's.
Is anyone aware of a (preferably free) server side proxy for pseudo javascript pubsubhubbub subscribers?
Reference: http://code.google.com/apis/feed/push/docs/index.html#hiworld
I know for a fact that Kwwika and Pusherapp are working on this. I can intro you with these guys if you want.
If not, I believe this should be relatively easy to build with stuff like Node.JS for example. This code on Github should be a good first start. Things like this have been built with it.
We (superfeedr) are trying to get more people building similar things...
I'm looking for a server side
component, preferably java, that will
allow me to subscribe to pubsubhubbub
feeds through javascript
There is a java implementation]1 of the subscribe part available. But the hub-part hasn't yet been implemented in java which is needed to subscribe to the feed which should be private. For the javascript(jquery) part I would just use simple long-polling.
Is anyone aware of a (preferably free)
server side proxy for pseudo
javascript pubsubhubbub subscribers?
I don't think a free solution like that exists (yet). Even google's push API isn't open yet.
Unfortunately, I'm dealing with data
that simply cannot leave our servers,
let alone go through Google's.
There isn't yet an implementation of the HUB-part of the pubsubhubbub protoccol. But if it is internally I also don't think you need this kind of fan-out the hub(specification) is offering(broadcast to other servers).
I think you could just use A comet framework like Atmosphere to suspend connection and broadcast feed diff. I think this can be written quick with the Atmosphere framework(1 day you will have a working prototype).
You can see an example using a combination of Superfeedr and Kwwika within a web application that lets you subscribe to any RSS feed or track keywords within RSS feeds here:
http://superfeedr.kwwika.com
And you can get the source code in GitHub here:
http://github.com/kwwika/ASP.NET-MVC-PubSubHubbub-Subscriber/tree/Kwwika-Superfeedr-Demo

War room Message center

Looking for ideas on how to implement a kiosk style/full screen client that will display messages sent to it, in realtime or push based. Basically, think a 911 dispatch center call board. I was thinking a xmpp bot to display, and making a simple xmpp client that can only send messages to the bot.
This is for a very small emergency disaster agencies war room, and only needs to be able to display simple messages entered in from one of the computers in the building. Is XMPP a good solution for this?
An IM protocol like XMPP is an acceptable solution for this.
XMPP seems to fit the bill, it is mature and has many clients that support it so it would not be necessary to write a client, just set up a regular IM client to send to the "buddy" that is the big board.
Are you looking at the problem backwards? Describe what you want to do a little more THEN seek advice on protocols. It smells like you might be designing around a protocol rather than designing around your requirements.
This should be as simple as a single HTML page, running full screen, using Strophe.js and an XMPP account. Strophe is an easy-to-use XMPP library in Javascript.
Something like the basic.{html,js} example here should be pretty much what you want:
http://code.stanziq.com/cgit/strophe/strophejs/tree/
Sounds like a simple pubsub setup (XMPP will work for this) where the clients are all publishers and the War room is the only subscriber. This eliminates the need for rosters so it keeps the intial configuration pretty simple.
I don't know what language you prefer to use, but it would be rather simple in Smack using the pubsub API and any XMPP server you prefer that supports the pubsub extension. (You will need to build Smack from source though as that particular API is new and not in the release version yet.)

What are the possible ways to send a feedback e-mail form?

My professor in the uni has asked me to design a simple website with a basic feedback form.
the form should NOT use 'mailto' for sending the feedback form e-mail
the form should NOT use server-side scripting (PHP, etc) for sending the feedback form e-mail.
Is is possible at all to send an e-mail from a website form without using any of these 2 options? Is there yet another option for sending an e-mail in this situation?
You could embed a Java applet or ActiveX control which does it for you.
No. The client-server model used by HTTP has the client and the server, both of which the professor has disallowed you to use. (Email does not use HTTP, but it's apparent in your question that you need to send mail from an HTTP context, and you need a computer on which to do that.)
I am not aware of a solution without using any of these 2 options.
Mybe your professor only doesn't whant that you scipt a solution. I guess there are plenty of feedback solutions as services on the web. Most web hoster also have a mail cgi script or something like this installed...
The professor agreed, that any of the following 4 technologies can be used for this project:
Java applet
ActiveX component
Javascript
Flash (Actionscript).
Many thanks for the help.
(How exactly sending an e-mail is going to be achieved with these technologies without referencing i.e. 'mailto' in Javascript or in the flash application or without referencing the server is going to be the strange part of this coding though).