邮件编辑器问题

时间:2011-01-14 12:48:26

标签: iphone sendmail

有没有办法获取Mail的“发件人”地址并在MFMailComposeViewController中显示它?

有可能吗?

任何方式......

请帮忙......

1 个答案:

答案 0 :(得分:1)

这将填满你的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];

编辑:

我认为你应该看看skpsmtpmessage