Add 'see online' link to any email
Project description
Email Online App
This app allows you to add 'see online' link to any email you are sending to users.
Configuration
- Add
emailonline
toINSTALLED_APPS
insettings.py
file. - Add
DEFAULT_MAIN_PAGE="[name of default main page to redirect]"
into thesettings.py
file. - Add
path("emailonline/", include("emailonline.urls")),
to the mainurls.py
file
Usage
Here is an example for creating email online:
email_online = EmailOnline()
email_online.user = user # optional
email_online.content = render_to_string(
"your_template_name.html",
{
...,
"online_message_uid": str(email_online.id),
}
) # prepare HTML / TXT message to send.
email_online.save()
HTML template example:
See this <a href="{% url 'emailonline:see_email id=online_message_uid %}'">email on webpage</a>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file emailonline-beeflow-0.0.2.tar.gz
.
File metadata
- Download URL: emailonline-beeflow-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5755f33616903fb4f5cd3c5db2b7ed9c1a0d1eedaacc682ce5be3b394a0ae1e7 |
|
MD5 | ae548d8703c745a2caf96ea35c48d34d |
|
BLAKE2b-256 | b2b08ed965b82317d86a932b493a9114c1c85e2504e2da26c79a864573867fba |
File details
Details for the file emailonline_beeflow-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: emailonline_beeflow-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07fcd5be97f824c5fd574b3f24f02aeba068f93c23494492c6ad41118d77d48e |
|
MD5 | fff922b852aaedd3f2b4f6e909495100 |
|
BLAKE2b-256 | 0e31de2d4ea5267b6a0cd6ca0ca05338d721b6e96a6535ec933301e61043f857 |