class Mail::SMTP
wrapper methods to support sending raw email, where recipient and sender can be custom
Public Instance Methods
deliver_raw!(raw_source_email, smtp_from, smtp_to)
click to toggle source
# File lib/mailhandler/extensions/mail/smtp.rb, line 4 def deliver_raw!(raw_source_email, smtp_from, smtp_to) response = start_smtp_session do |smtp| Mail::SMTPConnection.new(:connection => smtp, :return_response => true). deliver_raw!(raw_source_email, smtp_from, smtp_to) end settings[:return_response] ? response : self end