Skip to content

Instantly share code, notes, and snippets.

@pcasaretto
Last active February 18, 2019 17:42
Show Gist options
  • Save pcasaretto/1d6b756180f6de91faab105ab73720eb to your computer and use it in GitHub Desktop.
Save pcasaretto/1d6b756180f6de91faab105ab73720eb to your computer and use it in GitHub Desktop.
class BaseUserMailer
SMTP_SETTINGS = ...
def initialize()
@client = MailSendingLibrary.new(SMTP_SETTINGS)
end
def send_mail(user, mail)
@client.send_mail(user.email, mail.body)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment