html mailto: equivalent for sending an appointment request - html

I have a link which when clicked opens up your default email program. Is there a command that opens up a meeting request (i.e. with outlook) dialog?
could not post a screen shot because i don't have enough "reputation points" so hopefully my question is clear on its own.

If possible, try linking directly to an .ics or .vcs file.

mailto is a protocol, but there isn't an official protocol for calendars.
You could try the webcal protocol (i.e. webcal:calendar.example.com), but I don't know what browser support is like. Alternatively, link to a .ics or .vcs file.

Using Outlook Command-Line
While there is no protocol for a new calendar appointment, it's possible to run Outlook.exe from the command-line and have it start a new appointment with the following command-line switch:
outlook /c ipm.appointment
This opens a new appointment window:

Related

Script to automatically open URL contained in mail

I am looking for a way to automatically open in chrome an URL link contained in specific mails, as soon as they arrive.
Those mails always come from the same address mail (abc#xyz.com), with a similar title, and they contain only one URL link with the same beginning: " http://www.abcd.com/..."
I'm using the app mail on a mac.
I created a rule in mail:
If a New mail arrives and the address contains "abc#xyz.com"
Then run Script "XXX".
I now can't seem to find a way to make this script work. I could use AppleScript ou JavaScript, but I was told Javascript will be better for this purpose. What do you think?

Download an HTML file so that it opens in an email client (e.g. MS Outlook)

I'm struggling to find an answer to what I thought would be a relatively straightforward problem, and wondered if anyone could help:
It is to find a way of allowing users to open downloaded HTML files in an email client such as MS Outlook (without having to save them first).
We have a Web-based application that allows users to upload files, including emails. To do this, they need to save the email onto their network, and then upload the saved file via the browser's 'file select' control. The files are saved in an Oracle database, and we have a utility that allows the user to later download the saved email. When they do so, they are given the option to 'Open' or 'Save'.
When the email was saved using the .msg format, opening the downloaded email opens that email in Outlook, and all the usual email functionality is available. However, if the email is saved in HTML, selecting 'open' always loads the email content into the browser.
Is there a way of invoking Outlook when the user opens an HTML file from the Web app, so that they don't have to either 1) always save their emails as .msg files or 2) download the email to the network and use 'open with' to open it in Outlook?
The download utility allows us to set the MIME type, but application/vnd.ms-outlook (and the various email-related types) have no effect; so that an HTML email always opens in the browser.
We have also tried changing the filename extension to '.msg', but this results in an Outlook error message and the email does not open. Removing the file extension altogether means that the file still opens in the browser.
Changing the HTM/HTML file associations so that they open with Outlook is not an option for us, I'm afraid.
Does anyone know of a solution to this? Although the problem as I've described it isn't such a big deal for our users, we were hoping to generate draft emails programmatically for users to edit and send, but without the ability to open an HTML file in Outlook, this is going to be a lot trickier than we'd hoped.
Our main network browser is still IE7, incidentally.
Many thanks for your help with this.
Outlook does not handle HTML files at all. It needs to either be MSG or EML file.
For the latter option, it is easy enough to create a dummy EML file with an HTML MIME part that represents your HTML data.
The file extension would have to be set to .msg, and the file would have to be rewritten in this format as well. You can see the technical specifications for this format here: http://msdn.microsoft.com/en-us/library/cc463912%28v=exchg.80%29.aspx

Run HTML scripts in Cocoa-Touch?

Is there a way to run HTML scripts in an iOS application? I want to send an email using a script when a UISwitch us on, because I have to send encoded data that I do not want the user to accidentally modify. I have an option in my app preferences that will allow users to send debugging data to me so I can fix the app, kind of like what Adobe did in their mobile Photoshop app. The best way I can think of doing this is to use the HTML script below:
Also, will my app be rejected if I include that?
Take a look at MFMailComposeViewController: http://developer.apple.com/library/ios/documentation/MessageUI/Reference/MFMailComposeViewController_class/Reference/Reference.html
And send your debug data an attachment (addAttachmentData:mimeType:fileName:) so the user can't modify it. The user can't modify attachments, only delete them, so warn the user to not delete the attachment.
Using an HTML link like that will still open the mail app and let the user edit the message before sending.

Can we specify a particular email client while using href=mailto?

Can we specify to use a particular email client while using
<a href="mailto...
In my system it opens Microsoft Outlook. But what if someone does not have Outlook on his system? On such systems clicking the mailto link does nothing.
No you can't. You can specify the email address, subject and some other parameters for the mail client. But which mail client is started is something the browser decides. It would be quite a security risk if you could decide that as a web developer.
It will open in the system's default email client. If the user does not have one selected, there's nothing you can do about it.
There is much more you can use, but each system will act differently, for example in mine, I set up that all mailto links would open GMail.
mailto is a call to open the default mail browser, like using a link in a windows application will open the default browser and not a special browser if you have more installed.
The best way is always to create a form and send it by, either using the web server internal SMTP or using one of so many free scripts out there that sends everything in the form to a specify email.
and by the way, you can compose more than just the email address
<a href="mailto:me#domain.com?subject=Call me&body=Call me to this number:">
call me</a>
You, as the site author, have no say. A mailto: link is supposed to launch the user's default mail program. Some users don't have a mail program though (think webmail users.)
The solution is to not use mailto: links but instead create a server-side form on your site, that does the actual mail sending.
On a Windows machine the [HKEY_CLASSES_ROOT\mailto\shell\open\command] contains the path to what program will open mailTo links. As such, it's not always the default mail program. I agree with Balexandre's idea that a web form gives you the most control though.

Copy/Paste in JavaScript?

I know this question was asked like a million times by now, but I couldn't really find a good up-to-date solution.
I've implemented my own menu to provide the user the ability to Cut, Copy and Paste into my WebApp.
But I'm not sure how to actually work with the clipboard on Firefox, IE, Safari/Chrome.
Thank you for your help.
I just wrote a detailed technical blog post on this very subject (I work for Lucidchart and we recently did an overhaul on our clipboard). Included in the post is this fiddle which is a working example of copying and pasting via Javascript.
The good news is that this example gives you working code for setting/getting any supported clipboard data types whenever the user uses a clipboard hotkey.
The bad news is that using your own context menu to copy and paste is problematic. Even Google can't get around this (try using context-menu copy or paste in Google Docs in Firefox). You'll be able to get it to work without too much trouble in IE. This is because you can access the clipboardData object at anytime from Javascript via:
window.clipboardData
(When you attempt to do this outside of a system cut, copy, or paste event, however, IE will prompt the user to grant the web application clipboard permission.)
In Chrome, you can create a chrome extension that will give your web app clipboard permissions (this is what we do for Lucidchart). Then for users with your extension installed you'll just need to fire the system event yourself when they click the menu option:
document.execCommand('copy');
It looks like Firefox has some options that allow users to grant permissions to certain sites to access the clipboard, but I haven't tried any of these personally.
did u try :
http://ericphan.info/development/cross-browser-copy-and-paste-with-jquery-copy/
UPDATE:
the link is not available so i copy the content from cache :
The Scenario
I was working on a client project for SSW when the client reported a bug in the web app.
The bug involved a dynamically generated mailto link that got updated when you selected multiple employees. The client was reporting an error when he selected more than 10 employees to email. His Lotus Notes mail client popped up an error saying:
Error processing command line arguments
Testing this myself I found that Outlook 2007 could easily support the emails of 30-40 employees before the mailto link stopped working.
The Cause
It turns out that the mailto spec has a limit and the mail clients also have a limit. Lotus Notes only handles 240 characters in the mailto link and other modern mail clients like Outlook 2007 support the 2083 characters - the max length of a URL
This explains the discrepancy in testing.
The fix - JQuery to the rescue
Since this is a limitation of the HTML spec we needed another solution to meet the client’s requirement of “I want to be able to select multiple employees and send an email to all of them”
We could have created an email form that used SMTP to send out the email - but the client wanted to use Lotus Notes as his mail client.
We ended up changing the “email” button to copy all the emails (comma separated) onto the clipboard and popped open a new email window. All the client had to do was hit CTRL + V and paste the emails into the TO field. This was the quickest and most cost effective solution that gave the client the flexibility to use their own email client.
There is a JQuery plugin called jquery.copy that provided cross browser copy and paste by using a flash (swf) file. This is similar to how the syntax highlighter on my blog works.
Once you reference the jquery.copy.js file all you need to do to push data into the clipboard is run the following:
$.copy("some text to copy");
Nice and easy ;)
Note: you may need to change the path the the SWF file in jquery.copy.js to get this to work