- httpp://ca.linkedin.com/in/andreasoto
This file contains hidden or 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
this is my pretty example code test |
This file contains hidden or 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
#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 <[email protected]>", | |
:to => "[email protected]", | |
:subject => "Title", | |
:text => "Hello World!" | |