From aac1c56953eccd1852f49933306af791aed12fb0 Mon Sep 17 00:00:00 2001 From: Ahmad Date: Fri, 8 Apr 2016 17:59:22 +0800 Subject: [PATCH] Adding details about how to send to more than one email address --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 0dfb2da..40318c6 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,15 @@ defmodule MyApp.Mailer do html: "Welcome!" end + # Send email to more than one email address (all addresses should be in one single String seperated with commas) + + def send_welcome_html_email(user) do + send_email to: "#{user.email_main}, #{user.email_alternative}", + from: @from, + subject: "hello!", + html: "Welcome!" + end + # attachments expect a list of maps. Each map should have a filename and path/content def send_greetings(user, file_path) do