Email address can be unicode (.Net2.0)
-
Hi, Email address can be unicode like : Национа@аци.com (This russina Cyrillic chars) Problem is, I am using System.Net.Mail namespace in our project. When i am creating the email address object
Message.From = new System.Net.Mail.MailAddress(from.Address, from.Name);
then it's throwing an error: "The specified string is not in the form required for an email address"
Parwej Ahamad R & D: REST services with WCF
-
Hi, Email address can be unicode like : Национа@аци.com (This russina Cyrillic chars) Problem is, I am using System.Net.Mail namespace in our project. When i am creating the email address object
Message.From = new System.Net.Mail.MailAddress(from.Address, from.Name);
then it's throwing an error: "The specified string is not in the form required for an email address"
Parwej Ahamad R & D: REST services with WCF
Use other overload which has encoding. (String, String, Encoding) [^]
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Use other overload which has encoding. (String, String, Encoding) [^]
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
Hi Navaneeth, This encoding defines for fromName (DisplayName) not for email address. For name it is working fine. I am asking about the Email Address.
Parwej Ahamad R & D: REST services with WCF
-
Hi Navaneeth, This encoding defines for fromName (DisplayName) not for email address. For name it is working fine. I am asking about the Email Address.
Parwej Ahamad R & D: REST services with WCF
Parwej Ahamad wrote:
I am asking about the Email Address.
Well, I am not sure internationalization in email addresses are practical. Here[^] is the RFC which explains internationalization. Try reading it.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Parwej Ahamad wrote:
I am asking about the Email Address.
Well, I am not sure internationalization in email addresses are practical. Here[^] is the RFC which explains internationalization. Try reading it.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
Thanks Navaneeth, I will take a look.
Parwej Ahamad R & D: REST services with WCF