Skip to content

Commit 62ad8ee

Browse files
committed
Update email confirmation sending logic
1 parent f95e268 commit 62ad8ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/mailers/user_mailer.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
class UserMailer < ActionMailer::Base
66
def email_confirmation(user, origin = nil, language = nil)
7+
# For the Elements course, emails often bounce because the course does not mention mooc.fi handles the technical implementation of the course.
8+
# To protect our delivery rates we temporaily disable sending this email.
9+
return if origin && origin.downcase.include?('elements')
10+
711
@origin = origin
812
@user = user
913
token = user.verification_tokens.email.create!

0 commit comments

Comments
 (0)