GeoHealth / HAppi_backend

Apache License 2.0
1 stars 0 forks source link

Intégrer Mailgun #35

Closed seza443 closed 7 years ago

seza443 commented 7 years ago

https://www.mailgun.com/

Sauf pour le dev local: https://github.com/GeoHealth/HAppi_backend/issues/37

seza443 commented 7 years ago

Active Job's default behavior is to execute jobs via the :async adapter. So, you can use deliver_later now to send emails asynchronously. Active Job's default adapter runs jobs with an in-process thread pool. It's well-suited for the development/test environments, since it doesn't require any external infrastructure, but it's a poor fit for production since it drops pending jobs on restart. If you need a persistent backend, you will need to use an Active Job adapter that has a persistent backend (Sidekiq, Resque, etc).

seza443 commented 7 years ago

Cache emails views http://guides.rubyonrails.org/action_mailer_basics.html#caching-mailer-view

seza443 commented 7 years ago

En attente du nom de domaine happi-doctor.be

seza443 commented 7 years ago

Ok, nom de domaine confirmé, Mailgun testé et fonctionnel mais UNIQUEMENT avec des adresses emails préalablement validées Il faut un compte "non free" pour envoyer des mails à d'autres emails.