1

I currently have

import webbrowser
subject = urllib.quote('Some subject')
body = urllib.quote('here is a link: https://www.google.com')
cmd = u'mailto:?subject={}&body={}'.format(subject, body)
webbrowser.open(cmd)

This will create an email where the text is

'here is a link: https://www.google.com'

What I want is to show text linked to that url.

'here is a link: link_text'

Basically how do I achieve the effect of a href using mailto?

mingxiao
  • 1,712
  • 4
  • 21
  • 33

0 Answers0