smpallen99/coherence

Send emails asynchronously

Opened this issue · 4 comments

So, coherence is using swoosh to send emails.

I read from their docs, that there is no pre-defined behavior to send emails asynchronously, but to use elixir's Task.

But then, the method that is in charge of sending email in coherence is there and is not configurable.

So it means there is no way to send emails in the background but by forking the repo? Shouldn't there be an option for that? At least a small sendAsync: true option?

Has anyone had the issue and found a solution?

I am aware the repo is unmaintained, but I don't feel like cloning it: I am already maintaining my own fork of ex_admin, it is enough... 😓

Thanks

Maybe will you be insterested on moving to another library that is actively maintained?

I sure am! Will give it a try when I get some little time.

I started to change every email sending function to make async using Task according to Swoosh's README.

But nothing changed, still sending slow and it doesn't send actually, even it logs sent. There must be a problem with my SMTP server.

Or since I'm a newbie in Elixir world, I might have failed with the implementation. Here you can see my changes.

nesimtunc@940f87b

Maybe will you be insterested on moving to another library that is actively maintained?

It seems good one but I had problem after changed my db tables' default int primary key to uuid one.

pow-auth/pow#396