I dont have a problem with the code itself, just with the understanding of MFMailComposeViewController
First: How can I add my adress as the sender address?
When I click send, an email will be send to the recipients. And the email comes from my Email account.
But when I check my boxes, the email i sent from the app is stucking in the outbox.
error: “host does not allow relaying” how can I fix this?
Thank you!
Answer to first question is : You cannot add sender address from your application. Your sender address will be same as configured in Mail app of iPhone. You need to configured your email account in Mail app of iPhone.
iOS does not allow to setup mail account in your application.
Once you will configure proper mail account in Mail app, you will get rid off such errors.