Skip to main content

Add-on per Plone collegato a rer.newsletter per inviare le mail usando un servizio Flask

Project description

This is a plugin for rer.newsletter that moves outside from Plone the task for sending emails.

It is made to work with rer.newsletterdispatcher.flask natively, but can work with every endpoint that exposes the same route and replies in the same way.

The main problem having mail dispatcher into Plone, is that this task can take a lot of time (we have some cases with 70000 subscriptions) and block the instance for a large amount of time slowing down the site and cause also some conflict errors.

Features

This product register a new adapter for IChannelSender that overrides some basic rer.newsletter methods and send to an external endpoint all informations to send the newsletter.

This process is asyncronous, so the channel history will be updated only when the endpoint calls the site with the status of the task.

External endpoint address

You can set the endpoint address into Plone’s registry searching for “flask” entry or going directly here: http://your_plone_site/portal_registry/edit/rer.newsletterplugin.flask.interfaces.INewsletterPluginFlaskSettings.queue_endpoint

If the addesss is not set, the newsletter will not be send.

Completed task notification

When the external process finish its job (succesfully or with an error), calls a plone.restapi endpoint (@send-done’) registered for newsletter Channels to update the channel about the status of that job.

Translations

This product has been translated into

  • Italian

Installation

Install rer.newsletterplugin.flask by adding it to your buildout:

[buildout]

...

eggs =
    rer.newsletterplugin.flask

and then running bin/buildout

Contribute

License

The project is licensed under the GPLv2.

Credits

Developed with the support of Regione Emilia Romagna;

Regione Emilia Romagna supports the PloneGov initiative.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Contributors

Changelog

0.2.0 (2024-05-24)

  • Fix volto support. [cekk]

0.1.1 (2024-05-04)

  • Fix python version for Plone6. [cekk]

0.1.0 (2020-07-21)

  • Initial release. [cekk]

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

rer.newsletterplugin.flask-0.2.0.tar.gz (66.5 kB view details)

Uploaded Source

Built Distribution

rer.newsletterplugin.flask-0.2.0-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file rer.newsletterplugin.flask-0.2.0.tar.gz.

File metadata

File hashes

Hashes for rer.newsletterplugin.flask-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0b0b342cfe75b1da6996833038cbf515f41ff4565ef846bc1213338bda2672c3
MD5 09ea48f5a641fd729b491cf30c825247
BLAKE2b-256 0df9c6b8f0d41ca67f6773dcc17725681622066a35af6641fa98fdb625e82b3b

See more details on using hashes here.

File details

Details for the file rer.newsletterplugin.flask-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rer.newsletterplugin.flask-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c832e8d857f684db97774c5a94c6b37eb657eb02e6400160e93ebbd3e3111541
MD5 ac3fbc4033413b9901231187ae3103f8
BLAKE2b-256 e7f41a96354affce8243eea4d9084d7d4b592eb98b9d152095fae88b22dfb0f4

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