Home » FAQ » ASP.NET » Mail » How can I use a ‘friendly name’ in the To and From properties
Format the email address this way:
VB.NET
mail.From = 'Name <[email protected]>' mail.To = 'Name <[email protected]>'
C#
mail.From = 'Name <[email protected]>'; mail.To = 'Name <[email protected]>';
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with