Re: Adding custom Mail header to System.Net.Mail.MailMessage
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 Jan 2006 23:46:33 -0500
Ramesh,
Did you try adding something to these headers? The Headers property is
read only, but that onlyh means that you can't swap out the collection
outright. You should still be able to add whatever headers you wish.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
<asnowfall@xxxxxxxxx> wrote in message
news:1137111634.207157.90540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I am creating MailMessage out of already existing email message.
> My existing message has few custom properties. I wan to add them to
> System.Net.Mail.MailMessage
>
> How to add custom properties?
>
> I was thinking adding custom properties to
> System.Net.Mail.MailMessage.Headers. but it's a READONLY property.
> System.Net.Mail.MailMessage has few header fields as properties (eg:
> FROM, TO, CC) and these are not sufficient.
>
> So, if I have to use System.Net.Mail.MailMessage, do I have to ignore
> the custom header properties?
>
> Thanks
> Ramesh
>
.
- References:
- Adding custom Mail header to System.Net.Mail.MailMessage
- From: asnowfall
- Adding custom Mail header to System.Net.Mail.MailMessage
- Prev by Date: Plugin assembly path to find other needed assemblies
- Next by Date: Re: Do I need to include this project?
- Previous by thread: Adding custom Mail header to System.Net.Mail.MailMessage
- Next by thread: create dynamic object[]
- Index(es):
Relevant Pages
|