arteria / cmsplugin-contact-plus

With cmsplugin-contact-plus building custom forms for your django-cms project is a breeze. Now it's so easy to build the forms with exactly the fields you want in the order you want - with a minimal effort.
https://github.com/arteria/cmsplugin-contact-plus
BSD 3-Clause "New" or "Revised" License
30 stars 33 forks source link

And Support for custom email sender function and update es locale #45

Closed luisza closed 1 year ago

luisza commented 7 years ago

Hi,

With this PR will support a custom email function, and include the possibility to turn off email notifications. I update README to include the new settings variables (all optional)

I am developing https://github.com/luisza/async_notifications that manage how email is send, So I don't like to manage with template approach.

I update MANIFEST.in include locale folder (pip version right now haven't locale support).

jvamvas commented 7 years ago

Hi Luis, thanks for the Pull Request. There are clearly some great ideas:

Could you please go into a little more detail on what the advantages of CONTACT_PLUS_SEND_METHOD are compared to the django EMAIL_BACKEND setting?

luisza commented 7 years ago

Yes of course.

In email backend is used by provide a way to send a email, working with the connection, so.with this approach you can change the method of how django send the email eg sendmail or SMTP . I think probably I can adjust my code to provide a email backend with celery but the functionality in this PR do more than I need. Thinking what could be do using

luisza commented 7 years ago

Yes of course.

In email backend is used by provide a way to send a email, working with the connection, so.with this approach you can change the method of how django send the email eg sendmail or SMTP , but is not please for decision based on email content. I think probably I can adjust my code to provide a email backend with celery but the functionality in this PR do more than I need. Thinking what could be do using CONTACT_PLUS_SEND_METHOD I found

There is a lot of possibilities you can do with this new function

jvamvas commented 7 years ago

Thanks for the clarification 👍

I have released a new minor version with your MANIFEST.in fix. For the CONTACT_PLUS_SEND_METHOD setting, I think it would rather be material for a major release, because of the implications it would have on the scope and configurability of the plugin. We will keep your PR in mind until we plan the next major release :)

luisza commented 7 years ago

cool, thanks