2020-10-07 10:07:38 +02:00
|
|
|
module EmailHelper
|
2021-04-08 17:13:39 +02:00
|
|
|
def status_color_code(status)
|
|
|
|
if status.include?('delivered')
|
2020-10-07 10:07:38 +02:00
|
|
|
return 'email-sent'
|
2021-04-08 17:13:39 +02:00
|
|
|
elsif status.include?('blocked') || status.include?('hardBounces')
|
2020-10-07 10:07:38 +02:00
|
|
|
return 'email-blocked'
|
|
|
|
else
|
|
|
|
return ''
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|