Python win32com Outlook HTMLbody格式化目录不正确(Python win32com Outlook HTMLbody formatting directory incorrectly)
我正在尝试使用Outlook电子邮件正文中的win32com向共享目录发送超链接。 我不确定程序运行时我的路径发生了什么,使目录显示在下面。
import win32com.client as win32
outlook = win32.Dispatch('outlook.application')
mail = outlook.CreateItem(0)
mail.To = 'EMAIL ADDRESSES'
mail.Subject = 'Subject'
mail.HTMLbody = ("Hello All -
"
"Please find the following files in the shared drive:
"
""
"\\servername1\apps\folder
"
"The file names are:
"
"FILENAMES")
mail.send
文件路径在电子邮件中显示为:\ servername1pps \ folder
I am trying to send a hyperlink to a shared directory using win32com in the body text of an Ou