devxlogo

Using the “Friendly Name” When Sending Emails Through Code

Using the “Friendly Name” When Sending Emails Through Code

To use friendly names instead of the plain email IDs, simply write the email ID in the following format:

mailobj.From  = "AliasName <emailid>"

For example:

msgMail.From = "sms "; 

You can use it anywhere you write an email ID.

devx-admin

Share the Post: