What I want is to allow user to send and receive mail from my iPad app. I know that I can user MFMAilComposer but it's for sending only as per my requirement I need to provide all functionaly of an iPad email client app.
As far as I know you can send email using your iPhone app either using background or using the POP3/SMTP see the following link.
Open Source Cocoa/Cocoa-Touch POP3/SMTP library?
However, You can not get the emails received in iPhone mail box. But I think you can receive email from your mail server...See this stack overflow link you will get more idea Can receive mail directly from mail server in custom iPhone app?
Hope my answer helps..
Related
This question already has answers here:
Send an email from my app without using MFMailComposeViewController
(3 answers)
Closed 5 years ago.
I know you can send an email out of your app by presenting the user with a MFMailComposeViewController, but can you also send an email without the user having to push any send buttons?
The simple answer is "No".
It is against Apple guidelines. You cannot send mail without user interaction (action on send button).
As an alternate option, you can use power of web server/web service. Send information/data to your web service using web service request and can send an email from you web server. (Note: Mail sender id will not be email id of application user.)
You can try this but remember, it's against Apple guidelines and Apple may reject your app.
https://stackoverflow.com/a/5183267/5638630
http://iosameer.blogspot.in/2013/01/sending-e-mail-in-background-from-ios_25.html
https://stackoverflow.com/a/6287412/5638630
It is actually not possible to send an email only using your iOS code without MFMailComposeViewController and user's explicit interaction.
But you could upload the content of your mail to a web service of your own or from a third party and that will send it for you. This way the user will not do anything.
I am working on a application in which I have verify a users number.I will get the user's permission to send message from MFMessageComposeViewController.But I want to hide the code that I am sending in the message body from the user.I read that I can't send message from the
iPhone without showing MFMessageComposeViewController. And Apple will reject my application if i will use any third party framework for that.So what can i do to get my work done.Can any one guid me with that.Any help is welcome.Thanks in advance
Thanks
Happy Coding
There is no alternative method of sending an SMS on a non jailbroken phone.
Is the SMS method of sending critical? Otherwise - I would consider a behind the scenes webservice using HTTPS.
I am having a message in iPhone inbox. I want to send that message to a small app which in my iPhone to do some particular task.
Can some one suggest me , Whether it is possible to send that SMS to our application development.
Thanks.
Unfortunately is not possible handle sms at SDK level.
If you manage the send of sms you can add a link into it and, using a custom url scheme, passing data to your app.
How can I programmatically send an e-mail that is encrypted and signed using S/MIME?
How I currently do it:
Prepare MFMailComposer
Save the mail as a draft
Switch to native mail app
Open said draft
Send draft (which is automatically encrypted/signed by opening it directly from the mail app)
This seems unproductive.
Why I want MFMailComposer: If internet is unavailable, mail will be put in the outbox and sent automatically as soon as internet is available. If there is a solution to my S/MIME problem that doesn't rely on MFMailComposer, it has to have this "automatic-send"-feature.
Apple does not allow you to sent emails without MFMailComposer (because it would be easy to abuse).
The only way I can think of is to send your email to your sever and and encrypt it there/send it. You can always check if there is no intenet connection and write the contents of the email to a temp file and send it when internet is available.
Hope this helps.
Regards.
All I am developing an iPhone application in which I have to send mail to recipient without showing email id and the MFMailComposer UI view (i.e without user interaction and also user cant know who is the recipient). Can please tell me how to achieve this?
You cannot send Email without user acceptance. But there are a lot of web-services in internet which can send Email. I guess some app uses those services or uses own.
See also How can I send mail from an iPhone application
You can create a PHP webpage which uses the mail function, just a couple of lines of code.
Then just call the url to that php webpage from your app!