The problem with the mail composer

Is there a way to get the "from" Mail address and display it in the MFMailComposeViewController?

Is it possible?

Any way to do this.

Please, help....

+4
source share
1 answer

This will populate your MFMailComposeViewController:

MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; // Set up subject [picker setSubject:mailSubjectString]; // Set up recipients NSArray *toRecipients = [NSArray arrayWithObject:recieverMailAdress]; [picker setToRecipients:toRecipients]; // Fill out the email body text NSString *emailBody = bodyString; [picker setMessageBody:emailBody isHTML:NO]; [self presentModalViewController:picker animated:YES]; [picker release]; 

Edit:

I think you should take a look at skpsmtpmessage

+1
source

Source: https://habr.com/ru/post/1335548/


All Articles