Is there an API for POP/IMAP in iOS? - objective-c

In my app I need to access mail programmatically without using a MFMailComposeViewController. I have sent email with the help of SKPSMTPMessage from google code. Now I have to connect and check mail via POP3 or IMAP. Is there an API to download mail using POP3 or IMAP? I am not looking for a way to interface with Mail.app.
Thanks in advance.

You can try MailCore. MailCore supports SMTP and IMAP

I tried MailCore and reMail a year ago and it was too complex for me. I don't know if they improved now, but at that time I just gave up on them and written my own code. I uploaded it to sourceforge now, so whoever finds this discussion in google is welcome to try it.
https://sourceforge.net/projects/imap4ios/

Related

Automatic reply from Gmail to WebMail

I'm using Selenium WebDriver to test the web mail I've develop in one of my websites.
How can I set up a test script that when I send an email from the web mail to Gmail, Gmail will automatically reply to that email? I'm still fairly new using Java language.
I don't think setting up a selenium script to send a reply from gmail is the way to go. Since you are testing only your own application, you should refrain from creating scripts to automate replies from gmail as they further add a level of complexity and extra effort.
There are better ways to do what you want and I believe "Canned Responses" in gmail labs can be your savior.
Check out this link for more information on it :
Auto Responder to specific email addresses
You can also connect to the gmail address via POP3 in your java code and check for the email from your web mail and respond to that via java code itself. However, I think, the above solution (Canned Responses) would be the cleanest and the best approach.

How to query Hotmail for new email

I'm looking for the best way to check if new email has arrived in a Hotmail account without accessing the web interface or using a mail client.
I couldn't find any Hotmail mail API and looking at a Firefox add-on it seems that querying the site through a normal login process and then searching the HTML source is the way to go.
Any suggestions how to do this with security in mind?
Are you looking for API or plugin?
If API - it looks like they don't have any API for mail, they have API only for contacts and calendar.
But you can use SMTP or POP3 to fetch it.
EDIT
The link to the API can be found here.

Is there a way to send WhatsApp messages from desktop / server box?

I need online notifications from an enterprise information system.
Exists a way to send messages via WhatsApp instead SMS?
(I work with linux)
I have digging stackoverflow for an answer unsuccessfully.
to send server status to you. pushover alternative: node-xmpp-client with facebook sample and register fake facebook account
They are not official API neither a tool to send messages programmatically.

how to open Gmail inbox and readmail with selenium tool

i' m testing my web application with selenium. When a user registered, an activation link will sent to user mail id. now i' m able to login to gmail account and unable to pen inbox using selenium. Is there any solution to solve this problem?
thank in advance.
Do you actually need gmail for that? If there is activation link sent to specified e-mail, what about trying other service for e-mail? I have been playing around with gmail via Selenium IDE and did not found any solution...
I came across this blog post which may help you - http://seleniumsoftwaretesting.blogspot.com/2011/08/verify-email-confirmation-using.html?m=1

Email sending from iOS

Can I send email messages from my iPad application without using MFMailComposeViewController? Its possible to use SBSendMail in iOS?
No, there is no other native way to send e-mails except with MFMailComposerViewController.
No, you cannot use SBSendMail as that is only available on Mac (and is just a demo, BTW).
You could implement your own SMTP client to interface with a mail server (which would be a lot of work) or maybe there's an implementation out there that you could port, but it still wouldn't be of any use to you as you can't query which e-mail server(s) are configured in the iPhone/iPad.
To send mail in iOS, you need to use MFMailComposeViewController. SBSendMail is for sending mail in Mac OS.
Check this link.
You can now to this using URL schemes in iOS. You would specific the url scheme of the app you wanted to use, and call UIApplication.shared.openURL(url) on it.
I have written a blog post on this matter here if you wanted a closer look