Skip to content

Commit d0a3fac

Browse files
committed
Use real reply to in on-off messages
1 parent 1270207 commit d0a3fac

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)