%h4{style: 'text-decoration: underline;'} = subject %p %b Date: = I18n.l(contact.created_at, format: :long) - I18n.t('mail_form')[contact.contact_type&.underscore&.to_sym].each do |key, text| - value = contact.try(key) - if value.presence %p %b #{text}: = value