Skip to content

Instantly share code, notes, and snippets.

@franktisellano
Created March 23, 2015 02:14
Show Gist options
  • Save franktisellano/05a76e60a3dde00766bb to your computer and use it in GitHub Desktop.
Save franktisellano/05a76e60a3dde00766bb to your computer and use it in GitHub Desktop.
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