A Python library to encode mailto-URLs in HTML
This library can help you if you're using Django for creating webapps and wanting to add a mailto-URL.
This project is still on run, please run at your own risk.
clone this repository:
git clone https://github.com/Fukuro192/mailto.git
then on python import and use the principal function:
>>> import mailto
>>> mailto.mailto_href("[email protected]", cc="[email protected]")
'mailto:[email protected][email protected]'
you can use mailto_href
directly to set the href
-attribute like so:
<a href="{{your_mailto_result_here}}">Send a Mail</a>