I have written a code (using c#) in which I am getting mail from a group [email protected].
Thats ok but the new requirement is that mail should come from [email protected] but it shuld appear as TESTERS. I am unable to display the name as TESTERS when the group is [email protected]
How can I accomplish this task.
Thanks
Alias in mail using C#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kriti54 reputationPosted Feb 19, 2010, 2:05 AM EST
System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage(new MailAddress(from_,displayName_), new MailAddress(to));
Ww have to add a displayName.
Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 19, 2010, 4:45 AM EST