开发者

Mail Composer Issue

开发者 https://www.devze.com 2023-02-04 14:00 出处:网络
Is there a way to get the \"from\" address of Mail and display it in MFMailComposeViewController? Is it possible?

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

精彩评论

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

关注公众号