Skip to content

Fukuro192/mailto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

mailto

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.

how to use

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("name1@example.com", cc="name2@example.com")
'mailto:name1@example.com?cc=name2@example.com'

you can use mailto_href directly to set the href-attribute like so:

<a href="{{your_mailto_result_here}}">Send a Mail</a>

About

A Python library to encode mailto-URLs in HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages