我正尝试使用win32com在Outlook电子邮件正文中发送超链接到共享目录。我不确定当程序运行时,我的路径发生了什么,使目录显示为如下所示。Python win32com Outlook HTMLbody格式化目录不正确
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 -<br><br>"
"Please find the following files in the shared drive:<br>"
"<a href='\\servername1\apps\folder'>"
"\\servername1\apps\folder</a><br><br>"
"The file names are:<br>"
"FILENAMES")
mail.send
文件路径在电子邮件的出现: \ servername1pps \文件夹