Metadata-Version: 2.1
Name: emailonline-beeflow
Version: 0.0.2
Summary: Add 'see online' link to any email
Home-page: https://github.com/beeflow/emailonline.git
Author: Rafal Przetakowski
Author-email: office@beeflow.co.uk
License: UNKNOWN
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. 
        2. Add `path("emailonline/", include("emailonline.urls")),` to the main `urls.py` file 
        
        ## Usage
        
        Here is an example for creating email online:
        
        ```python
        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:
        ```html
        See this <a href="{% url 'emailonline:see_email id=online_message_uid %}'">email on webpage</a>
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
