Sending email with attachments through iOS Outlook - ios

My application (a DMS client) has strong ties to Microsoft technology, so my customers are on average much more likely to run Outlook for iOS than the default iOS Mail client.
However, Outlook does not respond to the MFMailComposeViewController, so that basically leaves two approaches on the table for sending email from the app:
Use the msoutlook:// URL scheme to open Outlook. This supports pre-populating recipients, subject, and a HTML styled body text, apparently without a maximum length. However, it does not seem to support attachments.
Use the UIActivityViewController (i.e. the "sharing" interface), which does allow for attachments (hurray!), but I don't know if it's possible to pre-populate any of the fields other than the content...and the sharing dialog itself is really unpleasant UI, interrupting the user flow with a complex choice.
Word (for iOS) presents the user with the following flow that directly opens a document as an attachment to a new email in Outlook. Assuming they don't use any private APIs, how are they doing that?

Related

Does MS-Graph have a similar feature like Office.context.mailbox.item.notificationMessages?

I need to implement a notification like the one provided by the office.js method Office.context.mailbox.item.notificationMessages using MS-Graph (or other backend outlook API).
Does MS-Graph provide this type of notification or any other notification for emails that show on the outlook client when the user opens an email?
Thanks!
No, it doesn't. You need to develop an Outlook add-in for displaying notification messages.
Also you may consider using MailTips. MailTips are informative messages displayed to users while they're composing a message. While a new message is open and being composed, Exchange analyzes the message (including recipients). If a potential problem is detected, the user is notified with a MailTip prior to sending the message. Using the information in the MailTip, the user can adjust the message to avoid undesirable situations or non-delivery reports (also known as NDRs or bounce messages). Read more about that in the MailTips and Configure custom MailTips for recipients articles in MSDN.
See mailTips resource type for more information.

Deeplink iOS Calendar

Trying to share a calendar event over SMS. The text contains the datetime of the event, which iOS picks up as a link, which opens iCal (Create Event, Create Reminder, Show in Calendar, Copy Event).
When a user taps "Create Event" - it just creates an empty cal event for the datetime. Is there a way to auto-fill the event with details when the users taps "Create Event"? Perhaps through deeplinking a URL or similar?
The behaviour you describe is iphone ios doing some natural language processing and recognising that 'hey that looks like a date or time and location'. When you click on the text, it will offer to create the event but one still has to fill in the rest of the details. It is not yet clever enough to work out the Event subject, and may not be that good at it if it tried.
There is a term 'Rich Media Messaging'(RMM) which aims to get past the limitations of the basic sms (short message system). This is hard if one is looking for universal phone and phone provider support as not all phones do multi media messaging. RMM appears to basically be a combination of multi media messages and short links. So basically there is no 'markup' for simple text messaging.
The only reliable universally acceptable way to 'text' an event via sms, an event with full details that would be recognised by all smart phones is via a link to an ics file. As the standard SMS length is only 160 characters and most hyperlinks are pretty long (usually between 40 to 100 characters), they can eat up necessary space in your message. Unicode characters could use that up quicker, so a user friendly short link might be best.
The ics file has all the info to pass to the system:
the text/calendar mime type tells the system it's got events inside so pass the file to the calendar app
then the contents of the ics file inform the calendar app of all the bits of the event as per the RFC5545.
For demonstration, I texted the "5 May yoga" single event link from this page https://test.icalevents.com/agenda/ to a phone. That ics file only contains a single event.
When one clicks on the link in the text message, the smartphone does as described above and suggests to create an event. This method has the benefit that one could perhaps track the clicks to the short link.

How to share text or image from ios app to Yammer

I need to share the text or image from one ios app to Yammer social network.
I am able to do login using iOS SDK of Yammer but not getting how can I share text or image from ios app to Yammer. I got the code to share text from browser but not from application.
Anybody has any idea??
Thanks in advance for your help and efforts.
This is documented on the Yammer API page. In order to post text and attach image
https://developer.yammer.com/v1.0/docs/messages-json-post
Parameters:
body - The text of the message body.
attachmentn and pending_attachmentn - Yammer provides two methods to associate attachments with a message. Both make use of multi-part HTTP upload (see RFC1867).
The first method is the easiest, simply use file form elements with names attachment1 through attachment20. If there are a several attachments or the attachments are large it may take some time for a message to POST causing your application to appear to hang.
An alternative way is to use the Pending Attachments resource (see below for details) allowing attachments to be uploaded in parallel. Apps that support HTTP chunked transfer encoding can monitor the progress of each upload. On success each pending attachment’s response body includes an id. These pending attachment ids are to be submitted with the message using form elements pending_attachment1 through pending_attachment20. Finally, if form elements for both attachmentN and pending_attachmentN are present only the pending_attachmentN elements will be honored.
I never used Yammer, but I wrote another app like Yammer used the given API, Yamme site should provide an API to share.

Send an email using text fields for the subject and body instead of MFMailComposeViewController

I want to send an email within my app, but without the standard email layout from apple's mail app, which could be obtained through MFMailComposeViewController. I would like to have two text fields, one for the users email, one for the body, and a button to send the email. Thanks!
The whole point of MFMailComposeViewController is that it looks and acts the same as the system standard e-mail application, also after iOS itself changes (think iOS 6 --> iOS 7). This is primarily for user convenience, so you're supposed to use it. AFAIK, you don't get direct access to the e-mail protocol stack anyway, but then again, you don't need to worry about it.
Of course, you can set the subject and body programmatically, so if you really wanted to, you could have those two text fields, and then copy whatever the user has entered, to use it with MFMailComposeViewController, but why bother? It makes the user experience worse, and it's extra work for you.

How to send a hyperlink to a mobile via SMS or MMS

I have been looking for a way to send a hyperlink of a URL with a different appearance to a mobile phone via SMS or MMS.
The only example of this that i can think of is the following:
[url=http://www.google.co.uk]Click Here[/url]
So the above code will show:
Click Here
when you click the 'Click Here' link it will open up http://www.google.co.uk.
Is there anyway that this can be replicated by using SMS or MMS?
As far as I know, there is not a generally accepted specification for rendering text messages with modern content. Though certain mobile operating systems (or rather messaging applications to be precise) might support inline links, it is not fail-proof and it won't work on every device.
Also, those smart-ish applications would not rely on a custom syntax but rather search for urls and make those clickable. That means it's not possible to set a custom text for a hyperlink in this context.
You can´t include hiperlinks in text messages, although most mobile browsers allow click in links. Also You could send a wap push (it´s a special binary sms) that it includes one link.

Resources