我正嘗試使用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 \文件夾