Skip to main content

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

  1. Add emailonline to INSTALLED_APPS in settings.py file.
  2. Add DEFAULT_MAIN_PAGE="[name of default main page to redirect]" into the settings.py file.
  3. Add path("emailonline/", include("emailonline.urls")), to the main urls.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emailonline-beeflow-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

emailonline_beeflow-0.0.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for emailonline-beeflow-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5755f33616903fb4f5cd3c5db2b7ed9c1a0d1eedaacc682ce5be3b394a0ae1e7
MD5 ae548d8703c745a2caf96ea35c48d34d
BLAKE2b-256 b2b08ed965b82317d86a932b493a9114c1c85e2504e2da26c79a864573867fba

See more details on using hashes here.

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

Hashes for emailonline_beeflow-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07fcd5be97f824c5fd574b3f24f02aeba068f93c23494492c6ad41118d77d48e
MD5 fff922b852aaedd3f2b4f6e909495100
BLAKE2b-256 0e31de2d4ea5267b6a0cd6ca0ca05338d721b6e96a6535ec933301e61043f857

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page