Is it possible to attach Attachements to mailto app in windows 8 metro application? - microsoft-metro

I am launching the mailto app in this way :-
using Windows.System;
//starts the default mail app with a subject, cc, bcc, and body
Launcher.LaunchUriAsync(new Uri("mailto:windows8devs#almostbeta.com?subject=Code Request&cc=kevin#almostbeta.com&bcc=admin#almostbeta.com&body=Hi!"));
1) Can't we attach attachments to mailto app in windows 8?
2) If so please let me know what would be the work around ?
Thanks in advance.

No, you can't attach files to mail app in Windows 8.
You need to use Sharing. Take a look to this: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh871371.aspx, for an example on how to share files.

Related

flex mobile project : send emails

I want to send email that contains form as a body from my mobile app. I am searching in internet , but I am able to find help only for desktop or web applications. I came to know that I can use "mailto" protocol,but I dont know how can I use it for mobile project.
Please help me with some examples or tutorials.
This works the same as it does inside a regular flex application. In your send method add something like this:
var urlRequest:URLRequest = new URLRequest("mailto:youremailhere#yourdomain.com");
navigateToURL(urlRequest);
I did notice that the mailto is case sensitive (mailTo worked in the emulator but not on the device, so make sure that it is "mailto"

Simulate iPhone environment in Firebug

Is there a way I can get Firebug or Firefox to send an iPhone user agent string to the browser, so I can debug the iPhone layout of my site more easily?
Thanks,
Kevin
Search for a User-Agent switcher extension and install that. One option is User Agent Switcher.
More generally, you can look for an extension to let you manipulate generic HTTP headers, which would of course include the User-Agent. It looks like Modify Headers is up to this task.
Try User Agent Switcher! Then set your user agent to whatever you like, in the tools menu.

Custom URL scheme embedded in an SMS on iPhone

Has anyone been able to successfully embed a custom url scheme in an SMS (for example someApp://), such that the iPhone upon receiving the SMS creates a clickable link to launch an app?
There are various questions similar to this out here, however, I have not seen a working solution.
Thanks
In general a custom URL scheme is the way to solve this problem. However, this is complicated by the fact that in iOS 5 (and up through iOS 5.1.1 based on my recent testing), Apple introduced a bug into their Messages app so that custom URLs received via SMS are not recognized as links.
See Custom URL scheme not recognized as link in SMS app(only in iphone 4 iOS 5.0)
You have to create URL scheme which starts with http, https or www.
but http:// and https:// will not work in URL scheme, so If you want create a click able link, you have to set your URL scheme with www.
For eg. www.myapp then the link which can open your app will be www.myapp:// but in this case only www.myapp will be click able and :// will not be click able.
For this use this format for URL scheme
www.<characters1>.<characters2>
www.my.app //example
Now use this format to open your app with click able URL:-
www.<characters1>.<characters2>://<anyThingYouWantToAppend>
www.my.app://open //example
www..:// is enough to open your app, but we are appending anyThingYouWantToAppend to create click able URL.
In my case on iOS 6, the link is not blue if sent from a custom sender ie text instead of a number. As soon as we started using a shortnumber as sender instead of a custom name, it was recognized as a link.
Assuming you have defined a custom url scheme as someApp:// you create a link in an SMS as follows:
"someApp://Myurl"

Include a picture in mailto:

I'm interested in placing a picture (along with some text) in a prepared email for the user to send off. Is there any way to use mailto: to do that?
No. The mailto: scheme does not support attachment. (See http://www.faqs.org/rfcs/rfc2368.html).
If you write an app you can attach an image with MFMailComposeViewController.
No, mailto: is just a HREF target for the A tag, and just instructs the operating system to open the mail browser to a specific location (with subject). To send a custom email on click of a link, you'll need server side code, such as PHP (sendmail) or Ruby (ActionMailer)
I think the best you can do is link to an image, like this:
test

Include an HTML img tag inside a mailto: URL on an iPhone

I'm trying to include an image in an email, which is being sent using a mailto: URL in an iPhone app. The image shows up on the sender's mail app, but after being sent, the tag seems to be stripped out entirely. Here's a snippet, which has been escaped by hand:
[mailUrl appendString:#"&body=%3Cimg%20src%3D%22http%3A//stackoverflow.com/content/img/stackoverflow-logo.png%22%20/%3E"];
Short of using my own SMTP server, or sending them as attachments, is there any way to embed images in an email on the iPhone?
No there is no way to do it using the iPhone SDK up till version 2.2.1.
There is a way to do it with the 3.0 SDK but it is under NDA so I cannot discuss it here :(
http://webbuilders.wordpress.com/2009/11/16/url-must-be-url-encoded-inside-a-nsstring-in-objective-c/
This new account won't allow me to post my answer. I include info here
Luke, probably not useful to you anymore, but in researching this topic someone mentioned that wrapping the image with <b></b> prevents the iphone mail app from stripping the img tag. I tried it and it works for me.