setPreferredSendingEmailAddress(_:)
Sets the preferred email address to use in the From field, if such an address is available.
Declaration
func setPreferredSendingEmailAddress(_ emailAddress: String)Parameters
- emailAddress:
The preferred email address used to send this message.
Discussion
If the user doesn’t have an account with a preferred address set up, the default account is used instead.
Only call this method before you display the mail composition interface. Don’t call it after presenting the interface to the user.