animina-dating / animina

👫❤️ ANIMINA Dating Platform
https://animina.de
Other
9 stars 6 forks source link

Setup SMTP For Sending Email Notifications #693

Closed MICHAELMUNAVU83 closed 1 month ago

MICHAELMUNAVU83 commented 2 months ago

I propose we have a module as such

defmodule Animina.Notifications.Emails do
  @moduledoc """
    This module contains functions for sending emails notifications

  """

  def send_test_email do
    # send test email here
  end
end

@wintermeyer , once you set this up , we can move on to classifying the notifications we need and sending them out

MICHAELMUNAVU83 commented 1 month ago

@wintermeyer , did you get a chance to look at this . If not , is it the same as following these https://hexdocs.pm/phoenix/1.3.0-rc.0/sending_email_with_smtp.html#:~:text=Sending%20email%20from%20a%20Phoenix,to%20try%20out%20the%20service.

If it the same and you have an SMTP username and password , I can give it a go

MICHAELMUNAVU83 commented 1 month ago

@wintermeyer , hello , have you had time to look at this . It would be good to have welcome emails sent to our users for the MVP in the next couple of weeks

wintermeyer commented 1 month ago

@wintermeyer , hello , have you had time to look at this . It would be good to have welcome emails sent to our users for the MVP in the next couple of weeks

@MICHAELMUNAVU83 I created a working solution.

MICHAELMUNAVU83 commented 1 month ago

Hello @wintermeyer , is there something I must confugure. Tried this

UserEmail.UserEmail.send_email("Michael" , "michaelmunavu83@gmail.com" , "Test" , "testing...")

And I did not get an email

wintermeyer commented 1 month ago

You don’t get the email in dev env. Have a look at the README how to see that email.