mailto-uri
Creates mailto URIs. The main use case is to create mailto URIs for support web pages. This makes it easy for users to request stuff by relying on provided mail templates.
usage
Create a mail template:
echo 'please increase my quota' > increase-quota.txt
Create mailto URI:
$ mailto-uri -s 'increase quota' -r support@example.com increase-quota.txt
mailto:support@example.com?subject=increase%20quota&body=please%20increase%20my%20quota%0a
This URI can then be pasted into web pages.
Plain HTML:
<a href="mailto:support@example.com?subject=increase%20quota&body=please%20increase%20my%20quota%0a">increase quota</a>
Markdown:
If you need more storage, ask us to [increase your quota](mailto:support@example.com?subject=increase%20quota&body=please%20increase%20my%20quota%0a).
MediaWiki:
If you need more storage, ask us to [mailto:support@example.com?subject=increase%20quota&body=please%20increase%20my%20quota%0a increase your quota].
Alternatively, you can provide the mail as Markdown and use front matter for recipient and subject:
---
subject: increase quota
to: admin@example.com
cc:
- support@example.com
- someone@example.com
---
Dear Admin,
Please increase my quota!
Best Regards
Using Markdown is especially helpful if tools like Markdown Here are used.
$ mailto-uri increase-quota.md
mailto:admin@example.com?subject=increase%20quota&cc=support@example.com,someone@example.com&body=Dear%20Admin%2C%0A%0APlease%20increase%20my%20quota%21%0A%0ABest%20Regards
You can also use it in pipes:
$ generate-template | mailto-uri
mailto:...
installation
Arch Linux:
$ pacaur -S mailto-uri
pip:
$ pip install mailto-uri
Metadata
Release files for mailto-uri 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailto-uri-1.2.0.tar.gz | 3.3 kB | Without provenance | Details for mailto-uri-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailto_uri-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for mailto_uri-1.2.0-py3-none-any.whl |
Total release size: 19.4 kB
Release files / mailto-uri-1.2.0.tar.gz
| Download URL | mailto-uri-1.2.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d3eb7fd490dcae114421686171ba668e82b492fae361ade69400f83d28a5d2d
|
|
BLAKE2b-256 checksum How to use checksums |
68a3e18f82b15a2dfb1ab17bfe4d9646fb1726075ea99e661d07306f146f3d49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3
|
Release files / mailto_uri-1.2.0-py3-none-any.whl
| Download URL | mailto_uri-1.2.0-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bcc4a126134752aba603602bed1add81aea3fef1d8bba924d6f6b384dd6190b
|
|
BLAKE2b-256 checksum How to use checksums |
bae72e6382ca8f25dae9c2d2c98ed3726916c66a02be69d8d567c8c4fd1c8a9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3
|
Security for mailto-uri 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.