Skip to content

Instantly share code, notes, and snippets.

View AndreaSoto's full-sized avatar

Andrea Soto AndreaSoto

  • Port Moody
View GitHub Profile
@AndreaSoto
AndreaSoto / Simple email example
Last active December 14, 2015 20:29
Simple email example in RoR and mailgun
#email function
#this code below goes on your controller
def sendemail
RestClient.post "https://api:your_api_key_here"\
"@api.mailgun.net/v2/your_app_version_here.mailgun.org/messages",
:from => "Andrea <your@email.com>",
:to => "your@email.com",
:subject => "Title",
:text => "Hello World!"
@AndreaSoto
AndreaSoto / test
Created March 12, 2013 16:41
Test of code of something
this is my pretty example code test