Re: Adding custom Mail header to System.Net.Mail.MailMessage



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
>


.



Relevant Pages

  • Re: [SLE] Maximum swap size
    ... >>Can't define swapspace larger than a free partition on your drive, ... > multiple swap partitions, so terabyte swap space is now a possibility, ... > Check the headers for your unsubscription address ...
    (SuSE)
  • Re: [SLE] swap space question in 9.3 install
    ... > SWAP ... Check the headers for your unsubscription address ... For additional commands send e-mail to suse-linux-e-help@suse.com ...
    (SuSE)