4

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

Is it possible?

Any way to do that..

Please help....

includeMe
  • 2,672
  • 3
  • 25
  • 39

1 Answers1

1

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

Alex Terente
  • 12,006
  • 5
  • 51
  • 71