     |> render("recover_password.html")
   end
 
-  defp base_email do
+  defp base_email(recipient) do
     # Here you can set a default from, default headers, etc.
     new_email()
     |> from({"Porto Summer of Code", "info@portosummerofcode.com"})
+    |> to(recipient)
   end
 end

  end

  def invite_notification_email(recipient, host) do
    base_email()
    |> to(recipient)
    |> subject("Join #{UserHelper.display_name(host)}'s team in this year's Make or Break!")
    |> put_html_layout({LayoutView, "email.html"})
    |> assign(:title, "Join #{UserHelper.display_name(host)}'s team in this year's Make or Break")

  end

  def joined_hackathon_email(recipient, team) do
    base_email(recipient)
    |> subject("Welcome to the Make or Break hackathon!")
    |> put_html_layout({LayoutView, "email.html"})
    |> assign(:title, "Welcome to the Make or Break hackathon!")
