outlook2016对html的支持,Outlook 2016 - Insert HTML code into email

pretty much the same way, by opening the HTML in Word then copy/pasting.

but you only get rudimentary formatting.

there was, through AppleScript, but it’s a tiny bit broken at the moment.

also because Microsoft (perhaps wisely) removed their proprietary Script Menu menu item (and all of the built in scripts)

That is, it worked in 2011, and it’s having issues in 2016. I found this thread looking for a solution to my issue.

anything other that rudimentary formatting won’t work in 2016. (and if someone knows of a way, please let me know) Image maps, also, won’t work. The internal rendering engine in Outlook simply ignores anything but the plainest HTML code. (pretty much what

you could do with the built in formatting tools.)

so, if you’d like, I can share the code here.

(please note that, depending on the version and your AppleScript libraries, this script won’t even compile in Script Editor — one of the dictionary terms, “message,” has changed, and I haven’t taken the time to find a correction. Placed in the correct folder

and run from the Script Menu it still runs, however.)

##################################

#

# Version 1 12/11/13

# David Cardillo

# License is freely given to use, copy, modify or otherwise alter this code, in whole or in part,

# provided all changes are shared with the originator.

#

# for sending formatted HTML messages through Outlook

#

# two options:

#

# A) navigate to an HTML document

# B) copy HTML code to the clipboard

#

##################################

tell application "Microsoft Outlook"

activate

display dialog "Create HTML message from the contents of the clipboard or from a file?" buttons {"Cancel", "Clipboard", "File"}

if the button returned of the result is "Clipboard" then

set HTMLMessage to the clipboard

else if the button returned of the result is "File" then

set theFile to (choose file with prompt "Choose the HTML file containing the message:")

open for access theFile

set HTMLMessage to (read theFile)

close access theFile

else

return

end if

set newMessage to make new outgoing message with properties {content:HTMLMessage}

open newMessage

end tell

Copy the text above, open a new script in Script Editor, paste and save.

Activate the Script Menu (if you haven’t already) from within Script Editor via Preferences > General > Script Menu > “Show Script menu in menu bar” radio button.

From the Script Menu > Open Scripts Folder > Open Outlook Scripts Folder — then copy/save the above script there. (You may have to create this scripts folder if it doesn’t already exist.)

From Outlook, go to the Script Menu > Outlook > [html script file you saved]

Again, it’s only the bare bones, rudimentary html in 2016.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值