|
|
|
start date: Thu, 23 Aug 2007 02:34:02 -0700,
posted on: microsoft.public.dotnet.framework
back
| Thread Index |
|
1
Campbell McNeill.
|
|
2
Kevin Spencer
|
|
3
Patrice http://www.chez.com/scribe/
|
Quotes in email addresses using System.Net.Mail.MailMessage Class
Hi,
According to RFC 2822: Internet Message Format, the following should be a
valid email address:
chris.o'connell@world.com
But on using the aformentioned class, a format exception will be thrown when
creating a message.
Is there a way I can use this email address for a message created using this
class?
Thanks,
Campbell
Date:Thu, 23 Aug 2007 02:34:02 -0700
Author:
|
Re: Quotes in email addresses using System.Net.Mail.MailMessage Class
You're correct that the single quote is valid, but I'm unable to find any
workarounds.
--
HTH,
Kevin Spencer
Microsoft MVP
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"Campbell McNeill." wrote in
message news:42745302-FE69-46B2-ADF5-D6A11CF94300@microsoft.com...
> Hi,
>
> According to RFC 2822: Internet Message Format, the following should be a
> valid email address:
>
> chris.o'connell@world.com
>
> But on using the aformentioned class, a format exception will be thrown
> when
> creating a message.
>
> Is there a way I can use this email address for a message created using
> this
> class?
>
> Thanks,
>
> Campbell
Date:Thu, 23 Aug 2007 07:49:16 -0400
Author:
|
Re: Quotes in email addresses using System.Net.Mail.MailMessage Class
You could try \' or DisplayName <addresse> just in case...
--
Patrice
"Campbell McNeill." a crit dans
le message de news: 42745302-FE69-46B2-ADF5-D6A11CF94300@microsoft.com...
> Hi,
>
> According to RFC 2822: Internet Message Format, the following should be a
> valid email address:
>
> chris.o'connell@world.com
>
> But on using the aformentioned class, a format exception will be thrown
> when
> creating a message.
>
> Is there a way I can use this email address for a message created using
> this
> class?
>
> Thanks,
>
> Campbell
Date:Thu, 23 Aug 2007 14:54:31 +0200
Author:
|
|
|