How to send an email with emoji?

0 votes
asked by about aspNetEmail
edited by

I want to send email with subject "" by aspNetEmail.dll.
But it display "����������������������������".
What can I do to fix it?

1 Answer

0 votes
answered by (89.6k points)

To fix the issue with displaying emoji as gibberish characters when using aspNetEmail.dll, you can try encoding the subject with Unicode encoding. This can be done using the System.Net.Mail.MailMessage.SubjectEncoding property and setting it to System.Text.Encoding.Unicode. This should allow you to send emails with emoji in the subject successfully.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...