开发者

Mail Composer Issue

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

Is it possible?

Any way to do that..开发者_如何学Python

Please help....


This will fill 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 have an look to skpsmtpmessage

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜