Search code examples
iphoneobjective-cemailaccounts

Sending email from Objective c using an specific email account


We need to send an email directly form an App, but using the specific company e-mail account. That is, a user may have several e-mail accounts in his iphone but the app needs to get automatically the user's company e-mail, and so sending the message from this account.

We've tried several ways without success. To send the e-mail, we use the SKPSMTPMessage.

We've been able to access all the contacts with the Address Book framework, but we cannot acess the user e-mail.

Do you know any way to do it? We've been browsing this web site and others without much success.

Thanks!


Solution

  • Apple don't allow this for the security of the app users. Apple won't allow you to send email or give you access to users email without his permission.