-
-
Save franktisellano/05a76e60a3dde00766bb 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 Mailer | |
API_TOKEN = api_token_here | |
def send_test | |
client = Postmark::ApiClient.new(API_TOKEN) | |
puts 'Starting send...' | |
client.deliver( | |
from: 'FROMEMAIL', | |
to: 'TOEMAIL', | |
subject: 'Weekly Email', | |
html_body: erb(:weekly_email)) | |
puts 'Send finished!' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment