vendor/rails/actionmailer/lib/action_mailer/base.rb in radiant-0.8.0 vs vendor/rails/actionmailer/lib/action_mailer/base.rb in radiant-0.8.1

- old
+ new

@@ -541,10 +541,11 @@ @mailer_name ||= self.class.name.underscore @parts ||= [] @headers ||= {} @body ||= {} @mime_version = @@default_mime_version.dup if @@default_mime_version + @sent_on ||= Time.now end def render_message(method_name, body) if method_name.respond_to?(:content_type) @current_template_content_type = method_name.content_type @@ -672,10 +673,10 @@ end def perform_delivery_smtp(mail) destinations = mail.destinations mail.ready_to_send - sender = (mail['return-path'] && mail['return-path'].spec) || mail.from + sender = (mail['return-path'] && mail['return-path'].spec) || mail['from'] smtp = Net::SMTP.new(smtp_settings[:address], smtp_settings[:port]) smtp.enable_starttls_auto if smtp_settings[:enable_starttls_auto] && smtp.respond_to?(:enable_starttls_auto) smtp.start(smtp_settings[:domain], smtp_settings[:user_name], smtp_settings[:password], smtp_settings[:authentication]) do |smtp|