Skip to content

Commit d692646

Browse files
authored
Merge pull request #1677 from codetriage/schneems/reply-to
Use real reply to in on-off messages
2 parents 1270207 + d0a3fac commit d692646

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/mailers/user_mailer.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,18 @@ def spam(user:, subject:, message:, htos_contributor: false)
100100
if @htos
101101
raise AbortDeliveryError if @user.htos_contributor_unsubscribe
102102
raise AbortDeliveryError if @user.htos_contributor_bought
103+
104+
reply_to = "[email protected]"
105+
else
106+
reply_to = "[email protected]"
103107
end
104108

105-
mail(to: @user.email, reply_to: "[email protected]", subject: subject)
109+
mail(
110+
to: @user.email,
111+
112+
reply_to: reply_to,
113+
subject: subject
114+
)
106115
end
107116

108117
private def set_and_check_user(user)

0 commit comments

Comments
 (0)