You are missing this part:
defmodule MyApp.SomeControllerPerhaps do
def send_welcome_email do
Email.welcome_email() # Create your email
|> Mailer.deliver_now!() # Send your email
end
end
Kindly check the official documentation here: GitHub - beam-community/bamboo at master · GitHub
You have to use your Application Mailer module to deliver the emails.
In your case, try to import this on top of the Rewardapp.Email:
import Rewardapp.Mailer
....
...
# in your email fn:
def rewardEmail(user) do
base_email()
|> to(user)
|> subject("You were granted points!")
|> text_body("You were granted some points! To check, log into your account!")
|> Mailer.deliver_now!() # to deliver immediately
end






















