Sha256: 033d5f81ad5c8450ee3593488391ca1d89d0f59b10294677a179a8afc6a1fdb4
Contents?: true
Size: 732 Bytes
Versions: 3
Compression:
Stored size: 732 Bytes
Contents
# encoding: UTF-8 module Campagne class Sender def self.deliver_email(email, subject, email_body, token) sleep 0.5 ActionMailer::Base::mail({ :from => "#{Rails.application.config.campagne_from_name} <#{Rails.application.config.campagne_from_email}>", :to => email.downcase, :subject => subject, :body => email_body, :content_type => 'text/html; charset=UTF-8'#, :'Return-Path' => "bounce+#{token}@#{Rails.application.config.campagne_domain}", :'List-Unsubscribe' => "<mailto:unsubscribe-#{token}@#{Rails.application.config.campagne_domain}>, <#{Rails.application.config.campagne_base_url}/campagne/unsubscribe/#{token}>" }).deliver end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
campagne-0.1.1 | app/models/campagne/sender.rb |
campagne-0.1.0 | app/models/campagne/sender.rb |
campagne-0.0.2 | app/models/campagne/sender.rb |