电子邮件中的富文本? [英] Rich Text in an e-mail?

查看:746
本文介绍了电子邮件中的富文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我的应用程序有一个电子邮件功能,您可以通过电子邮件发送报告,以及

批量电子邮件通过电子邮件发送所有客户的功能(作为单独的电子邮件)。我

允许用户设置主题文本,正文文本,并浏览

附件。


我也允许3基本的电子邮件选项:默认邮件处理程序(Mapi),MS

Outlook和专有的电子邮件客户端。我一直很好奇你将如何在身体信息中发送富文本,或者将图片插入

身体等等。有谁知道如何做到这一点?


作为测试,我尝试在我的

表格的正文文本框中使用新的富文本选项,但是当你使用mapi电子邮件时,它将把控制/

格式化字符而不是富文本。我的测试使用了以下

语句:


DoCmd.SendObject ,, acFormatRTF,rs!EMail ,,, Subject,mailtxt,False


其中mailtxt是富文本主题框的内容。


非常感谢所有人,


Andy

Hello all,

My app has an e-mailing feature where you can e-mail reports, as well as a
bulk e-mail feature for e-mailing all customers (as separate e-mails). I
allow the user to set the subject text, body text, and browse for
attachments.

I also allow 3 basic e-mailing options: Default mail handler (Mapi), MS
Outlook, and a proprietary e-mailing client. I''ve always been curious how
you would send rich text in the body message, or insert pictures into the
body, etc. Does anyone know how to do this?

As a test, I tried using the new rich text option in the body textbox on my
form, but when you use the mapi e-mail, it will put in the control /
formatting characters rather than rich text. My test used the following
statement:

DoCmd.SendObject , , acFormatRTF, rs!EMail, , , Subject, mailtxt, False

Where mailtxt was the contents of the rich text subject box.

Many thanks all,

Andy

推荐答案

" ARC" < PC ***** @ PCESoft.invalidwrote:
"ARC" <PC*****@PCESoft.invalidwrote:

>我的应用程序有一个电子邮件功能,您可以通过电子邮件发送报告,以及一个
批量电子邮件功能,用于通过电子邮件发送所有客户(作为单独的电子邮件)。我允许用户设置主题文本,正文和浏览
附件。

我还允许3个基本的电子邮件选项:默认邮件处理程序(Mapi) ,MS
Outlook和专有的电子邮件客户端。我一直很好奇你如何在身体信息中发送富文本,或者将图片插入
身体等等。有谁知道怎么做?
>My app has an e-mailing feature where you can e-mail reports, as well as a
bulk e-mail feature for e-mailing all customers (as separate e-mails). I
allow the user to set the subject text, body text, and browse for
attachments.

I also allow 3 basic e-mailing options: Default mail handler (Mapi), MS
Outlook, and a proprietary e-mailing client. I''ve always been curious how
you would send rich text in the body message, or insert pictures into the
body, etc. Does anyone know how to do this?



一个建议是在OE或Outlook中完成一个示例电子邮件,其中包含

格式,图形等,然后将其另存为一个文本文件,这样你就可以看到所有

原始HTML和嵌入式图形。

One suggestion would be to do up a sample email in OE or Outlook complete with
formatting, graphics and such and then save it as a text file so you can see all the
raw HTML and embedded graphics.


>作为测试,我尝试使用新的我的
表单中的正文文本框中有富文本选项,但是当您使用mapi电子邮件时,它会将控件/
格式字符放入而不是富文本。我的测试使用了以下
语句:
>As a test, I tried using the new rich text option in the body textbox on my
form, but when you use the mapi e-mail, it will put in the control /
formatting characters rather than rich text. My test used the following
statement:



问题是您需要设置电子邮件程序设置,以便在
$中添加一个特殊的行b $ b电子邮件的标题。哪个MAPI可能无法处理,SendObject肯定会处理
无法处理。 Outlook和其他电子邮件发送软件确实有这样的设置。


在Outlook而不是声明:

.Body = strBody

你需要声明

.HTMLBody = strBody


您还可以调整各种VB 6.0 SMTP代码并写出自己的代码

电子邮件。 Microsoft Access Email FAQ
http://www.granite。 ab.ca/access/email.htm


Tony

-

Tony Toews,Microsoft Access MVP

请仅在新闻组中回复,以便其他人可以阅读整个消息主题。

Microsoft Access Links,Hints,Tips&会计系统
http://www.granite.ab.ca /accsmstr.htm

Tony的Microsoft Access博客 - http://msmvps.com/blogs/access/

The problem is you need to set the email program setting so it puts a special line in
the header of the email. Which MAPI might not handle and SendObject certainly does
not handle. Outlook and other email sending software does have that setting.

In Outlook instead of stating:
.Body = strBody
You need to state
.HTMLBody = strBody

You could also adapt various VB 6.0 SMTP code available and write out your own
emails. Microsoft Access Email FAQ
http://www.granite.ab.ca/access/email.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony''s Microsoft Access Blog - http://msmvps.com/blogs/access/


Tony Toews [MVP]写道:
Tony Toews [MVP] wrote:

一个建议是在OE或Outlook中完成示例电子邮件

完成格式化,图形等,然后保存为

文本文件,以便您可以看到所有原始HTML和嵌入式图形。
One suggestion would be to do up a sample email in OE or Outlook
complete with formatting, graphics and such and then save it as a
text file so you can see all the raw HTML and embedded graphics.



一个人可以嵌入吗? HTML中的图形或仅在RTF中的图形?我有

总是假设HTML图形需要一个url回到一些外部

来源。这一直是我收到的HTML邮件的行为。


我从我的应用程序做了很多HTML格式的邮件,但仅用于布局和

文字格式。从来没有尝试过图像因为我认为他们只会看到占位符。


-

Rick Brandt,Microsoft Access MVP

电子邮件(视情况而定)至...

Hunter dot的RBrandt

Can one do "embedded" graphics in HTML or is that only in RTF? I have
always assumed that HTML graphics require a url back to some external
source. That has always been the behavior of HTML mail that I receive.

I do HTML formatted mail from my apps quite a bit, but only for layout and
text formatting. Never even tried images because I thought they would just
see the placeholder.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


8月25日星期一2008 06:30:54 -0500,Rick Brandt < ri ********* @ hotmail.com>

写道:
On Mon, 25 Aug 2008 06:30:54 -0500, "Rick Brandt" <ri*********@hotmail.com>
wrote:

> Tony Toews [MVP]写道:
>Tony Toews [MVP] wrote:

>一个建议是在OE或Outlook中完成示例电子邮件
完成格式化,图形等,然后将其另存为一个
文本文件,这样您就可以看到所有原始HTML和嵌入式图形。
>One suggestion would be to do up a sample email in OE or Outlook
complete with formatting, graphics and such and then save it as a
text file so you can see all the raw HTML and embedded graphics.


一个人可以嵌入吗? HTML中的图形或仅在RTF中的图形?我一直认为HTML图形需要一个url回到某些外部源。这一直是我收到的HTML邮件的行为。

我从我的应用程序做了很多HTML格式的邮件,但仅用于布局和
文本格式。从来没有尝试过图像,因为我认为他们只会看到占位符。


Can one do "embedded" graphics in HTML or is that only in RTF? I have
always assumed that HTML graphics require a url back to some external
source. That has always been the behavior of HTML mail that I receive.

I do HTML formatted mail from my apps quite a bit, but only for layout and
text formatting. Never even tried images because I thought they would just
see the placeholder.



这是我的经历。每当我使用图形执行HTML时,我必须将

图形存储在HTML引用的设置URL中。


Wayne Gillespie

Gosford NSW Australia

That is my experience. Whenever I do HTML with graphics I have to store the
graphics at a set URL referenced by the HTML.

Wayne Gillespie
Gosford NSW Australia


这篇关于电子邮件中的富文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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