MFMailComposeViewController with the name of the recipient as well as the email address

I find that I can

[picker setToRecipients:[NSArray arrayWithObject:@"My Name < myname@example.com >"]]; 

and it nicely displays “My Name” in the “To” field when composing a letter and delivers it correctly myname@example.com on my iPad. It looks good in the iPad simulator (I can’t send, of course).

But the iPhone simulator simply shows "1 recipient" on the layout screen. I don’t know if he will send it in order or not, I don’t need to have an iPhone device to check it.

Has anyone else taken this path? Any way to get the screen name on iPhone?

thanks

+7
source share
2 answers

OK received. There is a 40 character limit for the display name. When I realized this and looked for "40 email display name", I found there other (not Apple) links to the 40-char restriction. Perhaps RFC. Maybe I should have included a real name and email address in my question;)

+4
source

If you do not specify a recipient name, it will also display that name, since you saved it and received the name in your iPAD contacts. If you save the name and email address in the contact, it will display.

0
source

All Articles