Display recipients name instead of mail address in MFMailComposer - iphone

Is it possible to display or show the recipient name in Recipient field instead of the email address. I found this reference but doesn't understand what is done.
Can anyone guide for above. Is there any way to display name instead of email address.

Got the solution from the question itself.
#"My Name <myname#example.com>"

Related

how could I recognize an email as auto-forward email?

I have a task which needs me to find out the auto-forward email from an email set.
Originally I recoginize an email whose sender contains "caf_|auto_" and "+" and "_" as auto-forward email,for example "test3128+caf_=test3128=yahoo.com#gmail.com".
But finallly I find that the above-mentioned feature is not always right.Because the email may be an auto-forward or an auto-reply email.
Could anyone give me any help?You have my thanks.

Send Email with attachment to a specific recipiant , using share Content WinRT

I'm using WinRT and I want to send an email with attachment to a specific recipient programatically, that means the user of the app will not write the recipient address.
I found to solutions that dont correspond to my needs.
the first one is to use mailto protocol like this :
var mailto = new Uri("mailto:?to=ratatata#gmail.com&subject=our first subject &body=as you know this is our first mail baby ");
await Windows.System.Launcher.LaunchUriAsync(mailto);
this solution allow me to specify the recipient but the mailto protocol dont support attachement.
the second one is by using Share Content , like this microsoft sample ,
https://code.msdn.microsoft.com/windowsapps/Sharing-Content-Source-App-d9bffd84
this solution allow me to attach any type of files , but the user of the app should write the email address of the recipient.
NB: any other methods using MessageEmail , and system.net.mail dont work !
Any help please !!

Force Outlook to display from display name in header

I'm sending an email with .net SmtpClient and MailMessage. I set the from to be From: Something Else <mysmtprelay#example.com>. Note that mysmtprelay#example.com is a valid user on the domain and its display name is "My SMTP Relay".
When I get the email in Outlook 2013, the email from name is "My SMTP Relay" even if in the email header I see this From: Something Else <mysmtprelay#example.com>. Outlook ignore the Something Else display name and replace it with the domain name.
Is there a way to force Outlook to use the display name I provided in the From clause? If I send this email to gmail for example, the display name from the header is used, as expected.
Can someone help?
This is just how Exchange works: all incoming sender and recipient names are resolved against GAL. Exchange uses the default display name and SMTP address.

MFMailComposeViewController with recipient display-name as well as 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 the email, and delivers it correctly to myname#example.com, on my iPad device. Looks good in the iPad simulator too (can't send though of course).
But the iPhone simulator just shows "1 recipient" on the compose screen. Don't know whether it would send it ok or not, don't have an iPhone device handy to test that.
Has anyone else gone down this path? Any way of getting the display-name on the iPhone compose screen?
Thanks
OK got it. There is a 40-character limit on the display name. When I figured this out and googled "email display-name 40" I find there other (non-Apple) references to a 40-char limit. RFC possibly. Perhaps I should have included the real display-name and email address in my question ;)
If you don't give the name of the recipient then also it will display the name as you have stored the email & name in your iPAD contacts.
If you store the name & email in contact it will display.

How to get email address from MFMailComposeViewController

Application is sending email by using MFMailComposeViewController, everything works just fine. However after sending email, the recipient address needs to be stored for further processing. As far as I can tell, there is no API for this.
How do I get the email address where message was sent to?
Should I subclass MFMailComposeViewController and override something? What would that be?
Could I find email address by looking at MFMailComposeViewController view hierarchy? What would I be looking for there?
Any other ideas?
Figured out a partial answer, here's the details:
http://jomnius.blogspot.com/2011/02/how-to-find-mfmailcomposeviewcontroller.html
Problems: it finds the recipient email address(es), but only if that fits in about 35 character text string. Otherwise you find only a summary string like "aaa#aaa.aa & 2 more...". So where are the actual email addresses in this case?
As an alternate UI flow -- though obviously I don't know your app, so only you'll know whether this can work -- you could instead have the user enter recipient info into a textfield and then push the mail composition viewcontroller (with the recipient(s) pre-filled).
You could even use a variation of Joe Michel's Multi-Recipient Picker library to make it feel more like the native recipient selection.