Python Forum
Email - Send email using Windows Live Mail
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email - Send email using Windows Live Mail
#1
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



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)
Reply


Messages In This Thread
Email - Send email using Windows Live Mail - by cyberzen - Apr-13-2017, 01:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sound Sensor With EMail Notification parascand 1 519 Dec-10-2023, 03:10 AM
Last Post: deanhystad
  Save image from outlook email cubangt 1 736 Jun-07-2023, 06:52 PM
Last Post: cubangt
  Sent email based on if condition stewietopg 1 909 Mar-15-2023, 08:54 AM
Last Post: menator01
  How to horizontally align and display images side-by-side in an email using Python? shantanu97 0 1,028 Feb-22-2023, 11:41 PM
Last Post: shantanu97
  Looking to automate updating a spreadsheet with image from email cubangt 2 1,016 Feb-14-2023, 03:43 PM
Last Post: cubangt
Question Email and TLS only, how ? SpongeB0B 1 1,039 Feb-06-2023, 02:09 PM
Last Post: SpongeB0B
  Send email with smtp without using Mimetext mgallotti 0 734 Feb-01-2023, 04:43 AM
Last Post: mgallotti
  Get sender of email Pedroski55 0 1,621 Dec-03-2022, 09:23 AM
Last Post: Pedroski55
  is it possible to copy image from email and place into excel file? cubangt 3 1,304 Nov-30-2022, 05:11 PM
Last Post: snippsat
  email Library: properly send message as quoted-printable malonn 3 1,384 Nov-14-2022, 09:31 PM
Last Post: malonn

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020