Does Sitecore have a built in email engine? - sitecore

I know this may sound like a stupid question, but numerous google searches haven't given me the answer I'm looking for. I see a lot of data on how to format emails based on Sitecore Templates etc, but nothing on actually sending mail. Do I need to do this via .net code, or does Sitecore have a component that manages sending mail?

Take a look at Sitecore.MainUtil.SendMail as a built in function within Sitecore to send email. My understanding is it uses the standard .net mail library, but puts a Sitecore wrapper around it.

It depends on the volume of mail you want to send. If you just want to send simple emails (ie alert emails or 'thank you for registering' type emails then you would just use the normal built-in .NET email functionality.
For more complicated (campaign/mass) emailing there are add-on modules such as the Email Campaign Manager (ECM) - http://sdn.sitecore.net/Products/ECM.aspx or http://www.sitecore.net/unitedkingdom/Resources/brochures/Sitecore%20Email%20Campaign%20Manager
Sitecore provides some example auto-emailer actions in the 'Sample Workflow' that comes with the default Sitecore install too.
The Web forms for Marketers module also has some emailing actions that are included with the package.
Hope this helps :)

You should probably look into system.mail.net. The best reference site for this can be found here:
http://www.systemnetmail.com/

Thanks for all of the replies.
As with other Sitecore issues, I found that Sitecore was not necessary to solve this issue. Standard .Net functionality did what I wanted much easier.

Related

Recording Audio on the browser

I have basic website I developed in Django and SQL lite.
I want to add this feature to it.
A user should be able to click a button and record a message that is no longer than 10 seconds and save it.
It can be saved on server as an audio file or can be saved on the database if that is more efficient and possible.
Can you please let me know if Django already has any component or plugin or something that I can use?
If it doesn't exist, what are my best options. If I need to write from the scratch, can you point me to any tutorials/blogs, etc?
Thanks for your time
RM
As far as I know there's no such plugin for django. But it's not mainly django's work to do this. You can record audio via javascript using Web Audio API, or by using one of several projects (see this answer). Also if you have to support older browsers I think that your best bet is to use flash for this purpose (but some mobile browsers don't support it). So the best thing is to use some sort of fallback mode with html5&javascript implementation for browsers that support Audio API and use flash for others.

Twitter in Django

I have to create web application similar to twitter with a few tweaks using django. I am clueless if I have to use a CMS for this or any other existing django-application. Working from ground up is quite tedious to be honest. Can anyone recommend me which CMS( or anything else) I should attempt trying?
There is a project called trillr1. According to its page:
"Trillr is a Twitter-like microblogging service enhanced with user directory and group discussion features. " that's maybe what you want.
https://contributions.coremedia.com/trillr1
I guess, the closest you can come with an out-of-the-box software to imitate Twitter is Status.net, the software, that powers identi.ca. However, this is a PHP application.
I'm not aware of something similar in the Django world.

Is there a way to extract data from Nagios as if it was a web service?

My situation: I'm working on a web monitoring dashboard that assembles informations from different applications and sources and generate graphs, info graphics and reports.
The applications I'm trying to integrate are CACTI, Nagios, and other local private monitoring tools. I had no problem to integrate these applications, except for Nagios (I don't have much experience with it).
What I want to know is if there is a way to use Nagios as a Web Service, or something similar, so I can expose some of the informations and use it to generate my own reports on my dashboard application.
Is it possible to do that without any epic effort?
thanks for reading.
Nagios 4.x starting with version 4.4 now includes CGIs for JSON output. Installing the newest version of Nagios might be the easiest way to go.
See the announcement here.
Review the slides from Nagios World Conference 2013 here.
The Check_MK Multisite GUI (Web base GUI using MK Livestatus) offers a web service mode, where you can send queries/commands as URL parameters and get the response as JSON in the body.
The trick is: Create a view in the GUI, which fits your needs. Then extract the URL of that view and add the parameter output_format=json. Now you should have the output in a parsable format.
For example, this URL should give you a JSON list of all services:
check_mk/view.py?view_name=allservices&output_format=json
You can try:
1) MK Livestatus http://mathias-kettner.de/checkmk_livestatus.html
it's not web service but it can give current data without any complicated action. All you need redirect this data.
2)status-json plugin http://exchange.nagios.org/directory/Addons/APIs/JSON/status-2Djson/details which return data in JSON format.
3)NagiosWS plugin but I wasn't able to get to work it yet. I think it can be done for Nagios 2.x
4)GroundWork Foundation plugin. I think I will try use it now.
I was able to get to work 1 and 2 solution now.
Otherwise you can use Icinga which can give you some JSON or XML output. Icinga is fork of Nagios and can be installed with saving all your nagios data and plugins. At least it written on Icinga's site =) They have some other solution like PHP lib.
Sorry, I cannot post only 2 link while I'm newbie on this site.
Best regards.
Worked for me - MK Livestatus http://mathias-kettner.de/checkmk_livestatus.html it's not web service but it can give current data without any complicated action. All you need redirect this data.

HTML5 Offline storage web framework

I am looking for a web app framework which can automatically generate an HTML5 offline storage based app, so while the users become disconnected they still can view the data which normally is stored on a server
Also currently I am using Django and it would be great if there was a framework which could pull data from Django and present that as an offline app.
From the related questions suggested by stackoverflow, while writing this question, I found one interesting link mentioning that GWT has such functionality, I would like to know more about that if possible and if it can generate an HTML5 offline app
Thanks in Advance
Rather than server-side frameworks, you should be taking a look at JavaScript frameworks.
Dojo Storage will transparently select between providers such as Google Gears, Adobe AIR or plain old HTML 5 local storage. Dojo 1.5 - dojox.storage: http://dojotoolkit.org/api/1.5/dojox/storage
There's also jQuery local storage: http://plugins.jquery.com/project/saveit
... or jStorage, which can act as a storage plugin for jQuery, Prototype or MooTools: http://www.jstorage.info/
With any of these, you should be able to use a quick little AJAX call to pull (JSON perhaps) data from your server and use one of these tools to help minimise your storage code.
You're talking about a standalone app, not a django app.
This can be done with javascript (jQuery, Sproutcore, JavascriptMVC, Pyjamas ...) or Adobe AIR, or...
Pulling data from Django is just a matter of setting up a syncing method, most probably using JSON, to fill up the browser local storage. So this is not django-specific at all.
If you want a standalone django app, this can be done if you bundle in a python desktop app django with a built-in server, that's another question
You could suggest the users to create web apps or use google gears instead... I don't know if this will fill the question, but, i'm in the same way. However, I'm developing an governamental solution who will run only for some kind of people, so, I can have a few control about the user's environment... All you need to do is to use jquery to detect if user has a live connection, or offer to the users a 'preferences' page where you define the behavior of the page itself...
Some info about offline cache: http://diveintohtml5.ep.io/offline.html
PS.: In another post in stackoverflow, I 've found another question: html5 offline caching with php driven sites... The last Post said:
HTML5 offline caching does not work to make your pages interact; it works only to make a
particular page available offline. Basically, it works on a URL-by-URL basis. If you
absolutely need offline functionality, you will be forced to make it work in JS.
Also, make sure your manifest includes all resources used by all pages.
Hope this helps!
Hope it helps!!

I want to create blog posts to drupal by sending messages through Outlook. Ideas?

I think for two options, either to send messages to Drupal with SOAP or XML-RPC or by sending e-mail.
From the description, it looks like this module does exactly what you want. From the page just linked:
"Mobile Media Blog allows you to post media via e-mail or mobile phone.
It integrates with Mailhandler and saves the submitted text as node and attaches all files sent with it.
You may choose to use the inline module to display attached files automatically.
The mailalias module allows your users to provide more than on e-mail address for posting."
ORIGINAL POSTER SPECIFIED HE/SHE WANTS TO USE WEBSERVICES
If you want to use webservices to achieve this functionality, then I would suggest to use the blog_api module from the Drupal core. This module essentially exposes a number of well-known standards via the xml-rpc interface (MoveableType is the oldest one, but there are also MetaWeblog e Blogger API's in there).
Don't let you be fooled by the name of the module: with blog_api you can actually interact with any type of nodes on your site.
As for the reference material, that depends by the kind of API you want to adopt. Here is an example for the blogger API.
On a side note: if you go for the blog_api solution, then it might be useful for you to know that there are a number of blogging clients available as desktop applications under nearly any possible operating system. You might well consider using a dedicated software then, rather then an Outlook add-on.
If you want to post by mail, check out the Mailhandler module. It doesn't look very popular but it sounds like someone new is taking over maintenance.
If you want to do it via XML-RPC, Drupal has a built-in XML-RPC interface but I don't know about using Outlook for an XML-RPC client.
And of course, yet another module: Mail2Web. If you are using OG, Mail to OG may also be of interest.