Sha256: 3c165db31a90fb40726bb9681b4d6f5e95cd7a4af836178dbd6e1b478be939a0

Contents?: true

Size: 366 Bytes

Versions: 34

Compression:

Stored size: 366 Bytes

Contents

class Auth::SendMail < ActionMailer::Base
	default from: "bhargav.r.raut@gmail.com"
	def send_email(opts)
		@options = opts || {}
		raise "no recipient address" unless @options[:to]
		raise "no subject" unless @options[:to]
		
		mail(to: @options[:to], subject: @options[:subject]) do |format|
			format.html { render @options[:template] || "send"  }
		end	
	end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/mailers/auth/send_mail.rb
wordjelly-auth-1.5.9 app/mailers/auth/send_mail.rb
wordjelly-auth-1.5.8 app/mailers/auth/send_mail.rb
wordjelly-auth-1.5.7 app/mailers/auth/send_mail.rb
wordjelly-auth-1.5.6 app/mailers/auth/send_mail.rb
wordjelly-auth-1.5.5 app/mailers/auth/send_mail.rb
wordjelly-auth-1.5.4 app/mailers/auth/send_mail.rb
wordjelly-auth-1.5.3 app/mailers/auth/send_mail.rb
wordjelly-auth-1.5.2 app/mailers/auth/send_mail.rb
wordjelly-auth-1.5.1 app/mailers/auth/send_mail.rb
wordjelly-auth-1.5.0 app/mailers/auth/send_mail.rb
wordjelly-auth-1.4.9 app/mailers/auth/send_mail.rb
wordjelly-auth-1.4.8 app/mailers/auth/send_mail.rb
wordjelly-auth-1.4.7 app/mailers/auth/send_mail.rb
wordjelly-auth-1.4.6 app/mailers/auth/send_mail.rb
wordjelly-auth-1.4.5 app/mailers/auth/send_mail.rb
wordjelly-auth-1.4.4 app/mailers/auth/send_mail.rb
wordjelly-auth-1.4.3 app/mailers/auth/send_mail.rb
wordjelly-auth-1.4.2 app/mailers/auth/send_mail.rb
wordjelly-auth-1.4.0 app/mailers/auth/send_mail.rb