-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2452 from tulibraries/qa
GSMTP Fix
- Loading branch information
Showing
1 changed file
with
3 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 |
---|---|---|
|
@@ -177,11 +177,11 @@ def get_subject | |
|
||
# Some forms don't supply an email and name, so they we're failing | ||
def default_from_name | ||
"Temple University Libraries" | ||
name ? name : "Temple University Libraries" | ||
end | ||
|
||
def default_from_email | ||
"[email protected]" | ||
email ? email : "[email protected]" | ||
end | ||
|
||
# Declare the e-mail headers. It accepts anything the mail method | ||
|
@@ -191,7 +191,7 @@ def headers | |
subject: get_subject[0], | ||
to: get_subject[1], | ||
cc: email, | ||
from: %("#{name || default_from_name } <#{email || default_from_email }>") | ||
from: %("#{ default_from_name }" <#{ default_from_email }>) | ||
} | ||
end | ||
end |