-2

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!

Ramon
  • 410
  • 5
  • 22
  • 1
    If you are using SKPSMTPMessage, that means you are not using iphone mail accounts (in that case use MFMailComposeViewController). So the first time user tries to send email ask for login details and store them in the app – Mindaugas Jan 28 '13 at 11:49
  • Thank you; eventually we used MFMailComposeViewController to solve the problem. – Ramon Jan 29 '13 at 09:29

1 Answers1

1

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.

Rushi
  • 4,553
  • 4
  • 33
  • 46