Iphone 邮件生成器问题
有没有办法获取邮件的“发件人”地址并在MFMailComposeViewController中显示 可能吗 有什么办法吗Iphone 邮件生成器问题,iphone,sendmail,Iphone,Sendmail,有没有办法获取邮件的“发件人”地址并在MFMailComposeViewController中显示 可能吗 有什么办法吗 请帮助……这将填充您的MFMailComposeViewController: MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; // Set up subject [picker setS
请帮助……这将填充您的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];
编辑:
我认为你应该更具体地了解你想做什么。dsc希望在显示邮件表单之前输入“发件人”。我想这在sdk中是不可用的。我在这里看不到“from”的任何提及?!如果您在手机上配置了邮件帐户,则会自动设置发件人。