怎么样?发送与HTML *或*纯文本相同的电子邮件 [英] How? Send Same Email as HTML *or* Plain Text

查看:77
本文介绍了怎么样?发送与HTML *或*纯文本相同的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我正在寻找一种简单的方法来执行以下操作:


我们有一个数据库可以为网站提供内容。其中一些项目

是事件,有些是新闻文章。它们以格式化的形式存储在数据库中。

HTML所以ASP只是将它们直接放到页面shell中。


现在,我们要发送一个包含其中一些项目的简报电子邮件。

以HTML格式发送没问题。但是,有些成员只想要简单的

文本。 CDO中是否有一些可以自动将HTML转换为纯文本的魔术方法?或者,是否有一些现有的VBScript代码可以执行此操作?


BTW,环境是IIS 5.x(Windows 2000),Classic ASP和CDO。


谢谢......

Hello. I''m looking for a simple way to do the following:

We have a database that serves-up content to a website. Some of those items
are events, some are news articles. They''re stored in the DB as formatted
HTML so ASP just drops them right into a page shell.

Now, we want to send out a newsletter email containing some of those items.
No problem sending as HTML. However, some of the members want just plain
text. Is there some magic method in CDO that can automatically convert HTML
to plain text? Or, is there some existing VBScript code out there that can
do this?

BTW, the environment is IIS 5.x (Windows 2000), Classic ASP, and CDO.

Thanks...

推荐答案

我认为没有公司知道如何做到这一点。我得到的所有废话

看起来很糟糕(Outlook设置强制所有内容为纯文本)。


我认为最干净的方法是存储内容两次,或者

存储纯文本并在事后应用HTML。


-
http://www.aspfaq.com/

(反向回复地址。 )



" J。 Alan Rueckgauer < VO ** @ dev.nul>在消息中写道

新闻:#T ************** @ TK2MSFTNGP12.phx.gbl ...
I don''t think any company knows how to do this right. All the crap I get
looks horrible (Outlook is set to force all content to plain text).

I think the cleanest way to do it would be to store the content twice, or
store plain text and apply HTML to it after the fact.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"J. Alan Rueckgauer" <vo**@dev.nul> wrote in message
news:#T**************@TK2MSFTNGP12.phx.gbl...
你好。我正在寻找一种简单的方法来执行以下操作:

我们有一个数据库,可以为网站提供内容。其中一些
项目是事件,有些是新闻文章。它们以格式化的格式存储在数据库中,因此ASP只是将它们放到页面外壳中。

现在,我们要发送一封包含其中一些$ b的时事通讯电子邮件。 $ b项目。没有问题作为HTML发送。但是,有些成员只想要简单的文字。 CDO中是否有一些可以自动将
HTML转换为纯文本的魔术方法?或者,是否有一些现有的VBScript代码,
可以做到这一点?

BTW,环境是IIS 5.x(Windows 2000),经典ASP和CDO。

谢谢......
Hello. I''m looking for a simple way to do the following:

We have a database that serves-up content to a website. Some of those items are events, some are news articles. They''re stored in the DB as formatted
HTML so ASP just drops them right into a page shell.

Now, we want to send out a newsletter email containing some of those items. No problem sending as HTML. However, some of the members want just plain
text. Is there some magic method in CDO that can automatically convert HTML to plain text? Or, is there some existing VBScript code out there that can do this?

BTW, the environment is IIS 5.x (Windows 2000), Classic ASP, and CDO.

Thanks...



如果您使用CDO-NTS可能会查看消息的HTMLText / Text属性对象,使用哪个取决于收件人希望如何接收电子邮件!?


" J. Alan Rueckgauer写道:
If ur using CDO-NTS maybe have a look at HTMLText/Text properties of the Message object, using which depending on how recipient wishes to receive emails!?

"J. Alan Rueckgauer" wrote:
你好。我正在寻找一种简单的方法来执行以下操作:

我们有一个数据库,可以为网站提供内容。其中一些项目是事件,一些是新闻文章。它们以格式化的格式存储在数据库中,因此ASP只是将它们放到页面外壳中。

现在,我们要发送包含其中一些项目的新闻通讯。
以HTML格式发送没问题。但是,有些成员只想要简单的文字。 CDO中是否有一些可以自动将HTML转换为纯文本的魔术方法?或者,是否有一些现有的VBScript代码可以执行此操作?

BTW,环境是IIS 5.x(Windows 2000),经典ASP和CDO。

谢谢......
Hello. I''m looking for a simple way to do the following:

We have a database that serves-up content to a website. Some of those items
are events, some are news articles. They''re stored in the DB as formatted
HTML so ASP just drops them right into a page shell.

Now, we want to send out a newsletter email containing some of those items.
No problem sending as HTML. However, some of the members want just plain
text. Is there some magic method in CDO that can automatically convert HTML
to plain text? Or, is there some existing VBScript code out there that can
do this?

BTW, the environment is IIS 5.x (Windows 2000), Classic ASP, and CDO.

Thanks...





" Aaron [SQL Server MVP]" < TE ***** @ dnartreb.noraa>在消息中写道

新闻:eq ************** @ TK2MSFTNGP10.phx.gbl ...

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
我不是认为任何公司都知道如何做到这一点。我得到的所有垃圾看起来都很糟糕(Outlook设置强制所有内容为纯文本)。

我认为最简单的方法是将内容存储两次,或者
存储纯文本并在事后应用HTML。
I don''t think any company knows how to do this right. All the crap I get
looks horrible (Outlook is set to force all content to plain text).

I think the cleanest way to do it would be to store the content twice, or
store plain text and apply HTML to it after the fact.



[snip]


Aaron -


数据库包含了所有网站的内容,他们不会因为必须维护两个不同版本的所有内容而花费b $ b。 (结束

用户有足够的麻烦了解一个网站的工作原理。)OTOH,我

不要特别喜欢从头开始编写脚本/>
搜索并销毁HTML标记并保留段落。你碰巧知道那些已经在我那里可以拿到的东西吗?


谢谢,

艾伦


[snip]

Aaron --

The database contains just about all of the site''s content, and they won''t
go for having to maintain two separate versions of everything. (The end
users have enough trouble fathoming how a website works as it is.) OTOH, I
don''t particularly relish writing a script from scratch to
search-and-destroy the HTML tags and preserve paragraphs. Do you happen to
know of one that''s already out there that I can grab?

Thanks,
Alan


这篇关于怎么样?发送与HTML *或*纯文本相同的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆