List Info

Thread: .NET to convert HTML to text




.NET to convert HTML to text
user name
2006-06-06 18:40:48
In very simple cases, it does work that way. However, there
are a whole slew of messages where that doesn't work. 

Erick 

> -----Original Message-----
> From: Discussion of building .NET applications targeted
for 
> the Web [mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of 
> Marc Brooks
> Sent: Tuesday, June 06, 2006 10:55 AM
> To: DOTNET-WEBDISCUSS.DEVELOP.COM
> Subject: Re: [DOTNET-WEB] .NET to convert HTML to text
> 
> > I need to clean up HTML formatted emails sent in
to a plain 
> text version.
> 
> I thought that if you simply set ONLY the HTML body
content 
> of a mail message then ask for the plain-text body, the
CDO 
> stuff will automatically synthesize one.
> 
> --
> "One of the main causes of the fall of the Roman
Empire was 
> that, lacking zero, they had no way to indicate
successful 
> termination of their C programs." --Robert Firth
> 
> Marc C. Brooks
> http://musingmarc.blog
spot.com
> 
> ===================================
> This list is hosted by DevelopMentorŪ  http://www.develop.com
> 
> View archives and manage your subscription(s) at 
> http://discuss.develop.com

> 

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

.NET to convert HTML to text
user name
2006-06-07 04:45:33
IIRC when using CDO (NTS) to send emails it basically drops
the email
into the inetpub\mailroot\queue directory. You could
manually generate
an email with two parts (plain text and HTML) and drop it
into that
directory.

I haven't looked at the format for a while, but IIRC this
is pretty
straightforward. To check, stop the mail service and send
out a HTML
email. That should drop a properly formatted email with HTML
and
plaintext parts into the queue directory.

regards
David Cameron

Erick Thompson wrote:
> In very simple cases, it does work that way. However,
there are a whole slew of messages where that doesn't work.
>
> Erick
>
>> -----Original Message-----
>> From: Discussion of building .NET applications
targeted for
>> the Web [mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of
>> Marc Brooks
>> Sent: Tuesday, June 06, 2006 10:55 AM
>> To: DOTNET-WEBDISCUSS.DEVELOP.COM
>> Subject: Re: [DOTNET-WEB] .NET to convert HTML to
text
>>
>>> I need to clean up HTML formatted emails sent
in to a plain
>> text version.
>>
>> I thought that if you simply set ONLY the HTML body
content
>> of a mail message then ask for the plain-text body,
the CDO
>> stuff will automatically synthesize one.
>>
>> --
>> "One of the main causes of the fall of the
Roman Empire was
>> that, lacking zero, they had no way to indicate
successful
>> termination of their C programs." --Robert
Firth
>>
>> Marc C. Brooks
>> http://musingmarc.blog
spot.com
>>
>> ===================================
>> This list is hosted by DevelopMentorŪ  http://www.develop.com
>>
>> View archives and manage your subscription(s) at
>> http://discuss.develop.com

>>
>
> ===================================
> This list is hosted by DevelopMentorŪ  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

.NET to convert HTML to text
user name
2006-06-07 23:28:13
Just to correct what I said here slightly. If you send
emails using the
.Net email tools and don't specify a relay mail server,
then the email
gets generated and dropped into the
inetpub\mailroot\queue. I'm not sure
how it handles HTML emails (I haven't tested whether it
generates a text
part).

Effectively if you drop a properly formatted eml file into
the queue
directory, it will send it.

regards
David Cameron

David wrote:
> IIRC when using CDO (NTS) to send emails it basically
drops the email
> into the inetpub\mailroot\queue directory. You could
manually generate
> an email with two parts (plain text and HTML) and drop
it into that
> directory.
>
> I haven't looked at the format for a while, but IIRC
this is pretty
> straightforward. To check, stop the mail service and
send out a HTML
> email. That should drop a properly formatted email with
HTML and
> plaintext parts into the queue directory.
>
> regards
> David Cameron
>
> Erick Thompson wrote:
>> In very simple cases, it does work that way.
However, there are a
>> whole slew of messages where that doesn't work.
>>
>> Erick
>>
>>> -----Original Message-----
>>> From: Discussion of building .NET applications
targeted for
>>> the Web [mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of
>>> Marc Brooks
>>> Sent: Tuesday, June 06, 2006 10:55 AM
>>> To: DOTNET-WEBDISCUSS.DEVELOP.COM
>>> Subject: Re: [DOTNET-WEB] .NET to convert HTML
to text
>>>
>>>> I need to clean up HTML formatted emails
sent in to a plain
>>> text version.
>>>
>>> I thought that if you simply set ONLY the HTML
body content
>>> of a mail message then ask for the plain-text
body, the CDO
>>> stuff will automatically synthesize one.
>>>
>>> --
>>> "One of the main causes of the fall of
the Roman Empire was
>>> that, lacking zero, they had no way to indicate
successful
>>> termination of their C programs."
--Robert Firth
>>>
>>> Marc C. Brooks
>>> http://musingmarc.blog
spot.com
>>>
>>> ===================================
>>> This list is hosted by DevelopMentorŪ  http://www.develop.com
>>>
>>> View archives and manage your subscription(s)
at
>>> http://discuss.develop.com

>>>
>>
>> ===================================
>> This list is hosted by DevelopMentorŪ  http://www.develop.com
>>
>> View archives and manage your subscription(s) at
>> http://discuss.develop.com

>
> ===================================
> This list is hosted by DevelopMentorŪ  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )