I'm facing an issue to send a full network path of Windows as a hyperlink in email using Python, when I send it, users receive a broken link at the first white space in the path :
toaddr = ['mail1@exemple.com']
to_cc = ['mail2@exemple.com', 'mail3@exemple.com']
msg = MIMEMultipart()
msg['From'] = fromaddr
msg['To'] = ','.join(toaddr)
msg['CC'] = ','.join(to_cc)
msg['Subject'] = "The report"
path = "\\\\windows_Server\\golobal_directory\\the folder\\file yyymm.xlsx"
body = 'this the body text of the mail'+ path
msg.attach(MIMEText(body, 'plain'))
...
after sending my email, the users receive something like this :
\\windows_Server\golobal_directory\the folder\file yyymm.xlsx
have you any ideas how can fix this ?
thanks !