Last active
February 18, 2019 17:42
-
-
Save pcasaretto/1d6b756180f6de91faab105ab73720eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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