1000字范文,内容丰富有趣,学习的好帮手!
1000字范文 > outlook html格式 效果 outlook中以html格式回复邮件

outlook html格式 效果 outlook中以html格式回复邮件

时间:2023-02-01 00:57:30

相关推荐

outlook html格式 效果 outlook中以html格式回复邮件

默认都是html或rtf格式,但一旦有人以txt格式回复了一下,整个格式就乱了,非常的难读。(除非大家都是txt格式写出来的,讲究排版,我只在linux下的mutt里这么干)

outlook似乎没有配置项,可以选择修改回复的格式,所以google一把,找到了方法:记录如下:

1.创建两个宏,一个reply,一个replay all。

2.创建两个button,分别绑上新创建的宏。

宏1:

Sub ReplyinHTMLFormat()

Dim olSel As Selection

Dim oMail As MailItem

Dim oReply As MailItem

Set olSel = Application.ActiveExplorer.Selection

Set oMail = olSel.Item(1)

If oMail.BodyFormat = olFormatPlain Or olFormatRichText Or olFormatUnspecified Then

oMail.BodyFormat = olFormatHTML

oMail.Save

End If

Set oReply = oMail.Reply

oReply.Display

Set olSel = Nothing

Set oMail = Nothing

Set oReply = Nothing

End Sub

宏2:

Sub ReplyAllinHTMLFormat()

Dim olSel As Selection

Dim oMail As MailItem

Dim oReply As MailItem

Set olSel = Application.ActiveExplorer.Selection

Set oMail = olSel.Item(1)

If oMail.BodyFormat = olFormatPlain Or olFormatRichText Or olFormatUnspecified Then

oMail.BodyFormat = olFormatHTML

oMail.Save

End If

Set oReply = oMail.ReplyAll

oReply.Display

Set olSel = Nothing

Set oMail = Nothing

Set oReply = Nothing

End Sub

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。