-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed email account for mail sending
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,18 @@ module SmartGoals | |
class Email | ||
# Send an email message | ||
def send_email(email, message) | ||
|
||
# Account Credentials | ||
email_account = '[email protected]' | ||
email_password = 'UpYourGame' | ||
|
||
# Set mail options | ||
options = { | ||
:address => "smtp.gmail.com", | ||
:port => 587, | ||
:domain => 'your.host.name', | ||
:user_name => '[email protected]', | ||
:password => 'UpYourGame', | ||
:user_name => email_account, | ||
:password => email_password, | ||
:authentication => 'plain', | ||
:enable_starttls_auto => true | ||
} | ||
|
@@ -22,7 +27,7 @@ def send_email(email, message) | |
# Send the email message | ||
Mail.deliver do | ||
to email | ||
from '[email protected]' | ||
from 'SmartGoals Team' | ||
subject 'SmartGoals Notifications' | ||
body message | ||
end | ||
|