Invoking Mail App on the iPhone - iphone

The application I'm writing calls a web service that sends an email to the user. After the call to the web service is complete, I would like to bring up the Mail application so the user can read the email. I know I can use mailto:, but then a new email is created for the user to compose. Is there a way to invoke the Mail application so that it starts up at the Mailboxes view, allowing the user to navigate to their inbox?
Thanks.

You can't do it. There is no functionality in the SDK to bring up another application outside of URL associations. The best you can hope for in the short term is that they create a way for you to embed an email panel into your application.

Related

Email Verification for Web App Registration

Im working on a SAAS web app/website and trying to figure out the best way to make the sign up/registration as easy as possible for the user.
So far, we've got it down to only a few fields for the user to fill in, as soon as they hit "sign up" I thought it would look nice to display a loading animation with "creating your account" and fade right in to the interface.
I've noticed that a bunch of successful web applications are currently allowing registration and sending the user directly into the application without requiring an email registration for access.
I just really need some clarification - is the email verification thing only around so the company cannot be accused of spamming users? (i.e. when they send out routine emails)
Is there any way around this? Obviously to use the app correctly, they would need to receive the routine emails. What are your thoughts on this?
Thanks Everyone
I am not sure whether the case was solved, but we did exactly the same solution at mailcheck.co when you try signing up, invalid emails won't be accessed.

Sending mail in background

I am developing an iphone application in which i have to send a mail on custom button click and in background also it should not have user iteraction with mfmailcomposer view i.e, i dont have to show the view.
Please suggest me solution for this.
Thanks.
You could try using SKSMTPMessage:
http://code.google.com/p/skpsmtpmessage/
You won't be able to use the user's email accounts unless you ask them to provide credentials, but I've used this a few times where the sender address is not important.
The easiest solution for this problem is,
You need to create your own webservice. Pass all the details to your webservice and accordingly send email.
Details to be passed on webservice would be to/cc/bcc/subject/body etc.

UCMA: Chat with users not in AD

a customer wants enable a chat/instant messenger for his application webside. He is using Lync Server internally to Chat in-house. Now, he requires the following:
A external user (which will not be an AD user) logs into the webside is able to chat with a person inside the company. The internal user will receive those messages via his lync client.
What's the best way to achieve this?
i thought about bot that delegates messages from the webside to the lync server that does the rest. But how can i send a message as an external user?
The usual way to approach this is with the following components:
A bot that connects to the internal Lync infrastructure as an ApplicationEndpoint, and manages conversations with external/internal users
A Web or WCF service that exposes methods over http to external users - this could be built into the bot, or could be a separate service that communicates with the bot in some way
The web UI for presenting a users presence, allowing click-to-call, initiating and displaying a conversation etc
As an example, the WCF service could expose a few methods:
GetPresence(targetSipUri) - returns a presence value for the given uri
SendIM(targetSipUri, message) - sends an IM to the given uri
GetReplies() - polls for any responses
When you get into the detail you might need more methods - e.g. it may be an idea to generate a conversation token and pass this around
The web UI could present a list of contacts with a presence status (GetPresence), then allow the user to click a presence contact to initiate a new conversation window and send the inital message (SendIM), then poll the service for any replies from the contact (GetReplies) - note, the bot will have to queue replies internally until GetReplies is called.
There are commercial products that might meet your needs - a quick search for Lync webchat should turn up a few. Also, it may be worth looking into the Lync Web App, to see if this works for your customer
Edit: In answer to the comment below - yes, your internal users will see a conversation from "Our Lync Bot". If you don't know who your users are (e.g. random potential customers browsing a shopping site), you can grab some info from them (name, product to discuss etc) and have the bot display this to the internal user, either as part of the IM conversation, or as conversation context displayed in a Conversation Window Extension.
If your external users are known in advance (e.g. registered customers), and the internal user MUST see the conversation as being from them, then you will need to create a UserEndpoint for each conversation - but this would rely on having the user in AD.

Sending messages through application

In a Facebook application, is there anyway I can let a user send a message to another user (to his Inbox)? Even if there is no direct access, is there some kind of a link structure I can use such as:
"facebook.com/example?sendTO=user-id" that will prompt a facebook popup to send a message a user?
Joel
You can't send a message to another user via facebook's apis as no function exist for this. The only way to send personal and private messages are via emails (proxified or not), then the user must install your application and accept to share its email.
Just add "messages" in between the link:
If the persons id is https://www.facebook.com/some.one.007 then write
https://www.facebook.com/messages/some.one.007
Thats it.

How to run my programm to process email attachment of specified type on iPhone OS

I need to run my iPhone application when user gets email with attachment of specified type and process it. For example "some.jpg". How?
You're not going to be able to take over a basic file type like this on the iPhone. The closest you can come is to implement your own custom URL scheme, which would let you have your application be launched in the same sorts of circumstances if you're the one sending the email...
What this means is that you could make it so an email link like
myspecialimage://mycoolserver.com/some.jpg
launches your special application when a user clicks in.
See this link or the Apple documentation for guidance.