Apr-13-2017, 01:53 AM
Hi all,
As above matters, i have some problem how to send email using my default email client (Windows live mail) using Python.
After some exploring, i have found that we can use webbrowser.open or use the win32.client.
I have success to open the compose message but when i try to put attach file, its not appear in the new message box.
Please help. Below is my code.
Thanks
As above matters, i have some problem how to send email using my default email client (Windows live mail) using Python.
After some exploring, i have found that we can use webbrowser.open or use the win32.client.
I have success to open the compose message but when i try to put attach file, its not appear in the new message box.
Please help. Below is my code.
Thanks
import webbrowser recipient = '[email protected]' subject = 'test' body = 'This is testing message' attach = r'c:\\Temp\\hhtlatest.txt' webbrowser.open('mailto:?to='+ recipient + '&subject=' + subject +'&body=' + body + '&attachment=' + attach, new=1)