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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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