Mail Composer Issue - PullRequest
       7

Mail Composer Issue

4 голосов
/ 14 января 2011

Есть ли способ получить адрес «от» Mail и отобразить его в MFMailComposeViewController?

Возможно ли это?

Любой способ сделать это ..

Пожалуйста, помогите ....

1 Ответ

1 голос
/ 14 января 2011

Это заполнит ваш 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:

Я думаю, вам стоит взглянуть на skpsmtpmessage

...