In .Net 4.5 SmtpClient have public property DeliveryFormat
which accepts values of the System.Net.Mail.SmtpDeliveryFormat
type. So I can assign DeliveryFormat
value SmtpDeliveryFormat.International
and sends emails to the дима@почта.рф
(cyrilic email address). But my current project supports only .Net 4.0 (customer restriction). In .Net 4.0 SmtpClient haven't both SmtpClient.DeliveryFormat
property and SmtpDeliveryFormat
type at all.
Now when using cyrilic emails I'm got an error: The client or server is only configured for E-mail addresses with ASCII local-parts: дима@почта.рф
.
I'm using SendGrid service for sending emails - it supports IDN addresses (http://sendgrid.com/docs/Marketing_Emails/recipients.html). Does this mean that I can't send emails to the IDN adresses using .Net 4.0?