DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us