0

I want to send a mail using mailto, other ways dont work but mailto does, i wat to automate it but i need to click send everytime, how do i fix this what ive tried

import win32api
win32api.ShellExecute(0,'open','mailto:email@gmail.com?subject=Hi&body=Have%20a%20nice%20day%20bro',None,None ,0)
Ficolats
  • 1
  • 1
  • This code is starting some external email program to send the mail. That's one option, but as you noticed, you're dependent on whatever automation options that program does or doesn't provide. The other option is to do the work directly in your own Python code; see [How to send an email with Python?](https://stackoverflow.com/q/6270782/14637) for how to do that. You will need to know how to reach your email server and possibly how to log in to it. – Thomas May 13 '22 at 08:21

0 Answers0