Skip to content

Commit

Permalink
Changed email account for mail sending
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurenax committed Aug 14, 2017
1 parent 9802c1b commit e46dedf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions email.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down

0 comments on commit e46dedf

Please sign in to comment.