def newsletter(campaign, subscription)
      subscriber = subscription.subscriber

      return if subscriber.blank?

      content_type  = "text/html"

      attrs = subscriber.attributes

      @campaign = campaign

      @subscriber = subscriber

      @body = campaign.compiled_template_for(subscriber).html_safe

      mail( from: "#{campaign.from_name}<#{campaign.from_email}>",
            to: subscriber.email,
            subject: campaign.subject,
            content_type: content_type,
            return_path: campaign.reply_email )
    end
def newsletter(campaign, subscription)
      subscriber = subscription.subscriber

      return if subscriber.blank?

      content_type  = "text/html"

      attrs = subscriber.attributes

      @campaign = campaign

      @subscriber = subscriber

      @body = campaign.compiled_template_for(subscriber).html_safe

      mail( from: "#{campaign.from_name}<#{campaign.from_email}>",
            to: subscriber.email,
            subject: campaign.subject,
            content_type: content_type,
            return_path: campaign.reply_email )
    end
default delivery_method: :ses