Copy and format excel table to outlook body using python
I am trying to send an outlook email with content from a excel file pasted in the message body of outlook email. I have to use smtplib
only
I am trying to send an outlook email with content from a excel file pasted in the message body of outlook email. I have to use smtplib
only
This code works and sends me an email just fine:
I am trying to edit a text file then send it as email body using a python script but im getting the unicode encoding error. After some research i found the solution as using the method .encode(‘utf-8’) but this doesn’t serve me as the sendmail() method only sends strings
when i try to send mail using gmail and python error occurred this type of question are already in this site but doesn’t help to me gmail_user = "<a href="https://getridbug.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a676f4a6d676b636624696567">[email protected]</a>" gmail_pwd = "password" TO = '<a href="https://getridbug.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="781e0a111d161c381f15191114561b1715">[email protected]</a>' SUBJECT = "Testing sending using gmail" TEXT = "Testing sending mail using gmail servers" … Read more
My current script allows me to send emails fine, but there are just some characters it doesn’t like, particularly ':'
in this sample.