How to open socket in my client for Gmail? - android-emulator

I developing one App in that i'm creating my own client through which i want to access gmail?
or how to open session?

your question is very vague. Take a look at the gmail API and then post more specific questions (if you find the documentation confusing).
http://code.google.com/apis/gmail/

Related

Read Email List from Google

Now I know this might be an easy one for some people but I can't seem to find the answer.
Does anyone have a solution in asp.net to loop through emails listed within Gmail where I can loop through each of the emails and get the address details, the content and any attachments.
I then want to save the details to a db (easy bit)
I am just looking for the listing emails script for a given date.
Is this easy to do? I am doing it in asp.net so any examples in this would be great in VB format.
Thanks
Jon
You should start of by referring to the Google Gmail API. As you will note Google does not make it too easy to just query and fetch emails.. That's what Gmail is for!
But of course you could create your own IMAP client as Gmail offers supports the same.
I found this IMAP client library, but its in C#.
Hope this helps.

How to access gmail data in Objective C

I am building an iphone application in which I have email client using IMAP. I want to use gmail data API but I can not find out how. Could you tell me how to solve this problem. is there any way to access gmail data?
Infrastructure:
Iphone device: Iphone 4.
Operating system:MAC OS 10.6.8, iOS X
Since you already have an IMAP client, IMAP seems like the right way to go. Take a look at Google's Gmail documentation to learn about authenticating with OAuth so that you can access the server.
You have two ways to do so:
First:
As you have used IMAP, you can fetch the data from gmail using the keywords.
Have a look at imap custom keywords for information on using keywords.
Second:
Have a look at the API for fetching data using OAuth which should work with your client without any problems.

Securely sending email via external smtp server in cocoa touch

I'd like my app to be able to send an email, from my servers to their address, when they press a button. Seems simple enough but I can't seem to find any straightforward examples. The ones I have found use third party libraries which some people said were insecure in that someone could find a way to send their own emails through that account.
Also, would this type of thing get my app rejected? Do I have to use the built in email message window?
Thanks!
check this out: http://code.google.com/p/skpsmtpmessage/

Can I send email programmatically in iPhone app?

I need to be able to send a pre-formatted email or SMS text message programmatically from within an iphone app. Can this be done? I have looked at apple's MFMailComposeViewController class, but this "provides a standard interface that manages the editing and sending an email message" and the MFMessageComposeViewController class also has it's own "standard system interface for composing SMS text messages". These allow you to present an interface to the user where they have to fill in all the data and then explicitly press a send button.
I cannot use this boilerplate functionality.
I need to be able to send a message without presenting any interface to the user. I know this sounds evil, but actually it is for a commercial application which needs to communicate to a user group in a central office when users in the field have performed specific actions out in the field.
Has anyone found a solution to this?
After much investigation, I have found that sending emails programmatically, without user intervention, from an iphone application, cannot be implemented using any of the apple frameworks.
Set up a web service you can post to using an HTTP request. If you are posting to only one address this can work very well, although you may want to get the user to input their return mail address.
Otherwise only the standard dialog is available (this relies on using whatever account they've setup on the device).
Here are a few SMTP API's that work on OS X. They might work on iOS as well.
Pantomime
MailCore
EdMessage
Only Possible via Web Interface, you can not hide the Interface , this is as per apple Guidlines to Developer and as per documentation
Looking for a solution to such a problem, I found something interesting here: How to send mail from iphone app without showing MFMailComposeViewController?
I hope this will be useful!
This is standard not possible. If you can't use the standard dialog you need to use SMTP.
SMS is the same, use the dialog of use a webbased sms service (most of these cost some money).
I have no experience with iOS, but I have enough experience with email protocols to say I'd be very surprised if a client application could send email without accessing a server. More than likely, the email will be sent using the SMTP protocol and therefore must be sent using an SMTP server. Choosing how you connect to that server is about the only option you have. You could connect to a server-side script (such as php) to generate and send the email, or you may be able to create a socket and connect directly to port 25 on the SMTP server and still generate the email from you client application.
Check out:
RFC 5321 at https://www.rfc-editor.org/rfc/rfc5321
SMTP on Wikipedia at http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol
You could always do a low level telnet using SMTP protocol to a known mail server to send a message. I don't know if Apple will reject the app, but SMTP is damned simple.

how to send SMS/Email from an application

first of all thanks a lot to all of you for past valuable suggestions,we are creating an application where on certain events wants to send email/sms to specified phone number we already tried with the openURL call but it opens the existing inbuilt email/sms application of the iphone.Our requirement is to send sms/email without opening the inbuilt iphone email/sms application is it possible if yes what are the supported API's to achieve it.
thanks in advance.
You can do this with a short code by way of a SMS/MMS aggregator like OpenMarket or as another person has posted you can use the SMS Gateway but this requires the knowledge of the end users carrier name. If your replying to a SMS on the iPhone I believe you can use the API which in turn would give you the carrier id of the incoming SMS message you would like to reply to.
Maybe you could explain your problem a little more so we can better grasp your question.
You can see my other answer from a similar question. Basically you can send an email to the phone if you know the provider. The provider will then format the email into a SMS message.