FIX: retry sending an email in 1 hour when SMTP server is busy

This commit is contained in:
Régis Hanol
2016-05-09 20:37:33 +02:00
parent e8623ccd92
commit d224966a0e
3 changed files with 20 additions and 5 deletions

View File

@@ -135,8 +135,8 @@ module Email
# Suppress images from short emails
if SiteSetting.strip_images_from_short_emails &&
@message.html_part.body.to_s.bytesize <= SiteSetting.short_email_length &&
@message.html_part.body =~ /<img[^>]+>/
@message.html_part.body.to_s.bytesize <= SiteSetting.short_email_length &&
@message.html_part.body =~ /<img[^>]+>/
style = Email::Styles.new(@message.html_part.body.to_s)
@message.html_part.body = style.strip_avatars_and_emojis
end