ios - Send a text as email with receiver (me) already inserted? -
i give users possibility send me improvement proposals (hope that's word) entering text in text field , submitting it. process should this:
- you click "improvement proposal"-button
- a uialert text field opening
- you enter text , click on submit
- a new email opening , email address inserted receiver
how do that? well, got step 1 3, step 4 point i'm having trouble with.
is possible , if yes, how?
that possible using mfmailcomposeviewcontroller. can write
let composevc = mfmailcomposeviewcontroller() //...further setup... composevc.setmessagebody("this proposal:", ishtml: false) composevc.settorecipients(["myadress@example.com"]) self.presentviewcontroller(composevc, animated: true, completion: nil)
Comments
Post a Comment