I am using inbuilt framework of iPhone sdk to send an email.
So is there any way to test this functionality on iPhone simulator.
Also the composer shows only TO, CC, BCC but not FROM, so what email id does it use to send an email to the specified recipients.
Emails sent from apps other than Mail use the default mail account (configured in the Settings app).
Related
I have an in-house app that is used by employees. I need functionality included in the app so that an email can be sent to a group email address in an emergency. For this I do not want to have to show the UI and then have to require the user to press send to actually send the email. I am trying to send a pre-written email that sends when a PIN is entered correctly.
I have seen and tried to implement SKPSMTPMessage but this does not seem to work in iOS 7.
If I send the email to an smtp service via a web service I can make this work but if there's an easier way within objective c then I would like to use that way.
Is it possible to send an email in the background in iOS 7+ in the above scenario?
Currently when I send a mail message from within an iOS web app (fullscreen from home screen) the web app closes and the mail app opens.
The same thing happens in Color Mail: http://www.apple.com/webapps/productivity/colormail.html. When you send a mail message you are kicked out of the web app.
Is there a way to send a mail message and remain inside the fullscreen web app?
Thanks!
If you want to send an email without using the Apple Mail client (which is basically what you're asking) you'll need to use a web service that support sending email in response to a request.
For example, Amazon's Simple Email Service lets you send email in response to an API query.
However, if what you're after is sending an email message from the user's own account then you unfortunately must exit the app and go into Apple Mail - in much the same way that a mailto: link would do if you used it on a website.
EDIT: IF you were a native app, what you'd be after is the MFMailComposeViewController. It allows you to bring up a standard mail compose interface right within your app.
HOWEVER, since you're not, you're going to have to build your own form interface, and then take the form submission on the web app and send the mail from there.
(Sorry. Didn't read.)
How can I write an iOS application that displays mail from my GMail account?
You could use libetpan. It's a library for a mail client. And gmail uses IMAP, so you can use the IMAP part of libetpan.
I am creating a mail app. I am using MFMailComposeViewController. I am able to check whether the mail client is configured with any of email or not. But can I check that the mail client is configured by a particular email account.
I want to force user to first setup his mail account and then try to send mail. For that I need to check if user is trying to send mail from abc#gmail.com then it should be configured so is it possible to check that if iphone's Mail app is configured by given email.
If possible then how and if not then any alternatives..
Thanks a lot.
The API doesn't expose that information publicly (for probably good reasons, such as preventing developers from harvesting iPhone users' email addresses).
i want to send mail through iphone sdk i know there are lots of answers here on stack overflow but it does not work ,i downloaded the mail composer app from apple site and ran in my simulator ,it displaye that mail has been sent but i dont get it on my email address
YOU CANNOT send mails through simulator. It just shows mail sent for the acknowledgement that your mail code is working and wont crash or have any errors..
For testing you have to use device. SIMULATOR shows you the composer but will never send mail as the mailclient is not installed in it..
hAPPY cODING...
You cannot test mail and message compose controllers in simulator. Mail composer uses the default mail account set up on your device to send the mail. There is no mail account set up in the simulator.
Test it on device...