Skip to content

Commit

Permalink
Merge pull request #2452 from tulibraries/qa
Browse files Browse the repository at this point in the history
GSMTP Fix
  • Loading branch information
cdoyle-temple authored Aug 23, 2022
2 parents a465e5b + eda4e75 commit ed59020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit ed59020

Please sign in to comment.