0
@@ -35,7 +35,8 @@ module ActionMailer #:nodoc:
0
# * <tt>subject</tt> - The subject of your email. Sets the <tt>Subject:</tt> header.
0
# * <tt>from</tt> - Who the email you are sending is from. Sets the <tt>From:</tt> header.
0
# * <tt>cc</tt> - Takes one or more email addresses. These addresses will receive a carbon copy of your email. Sets the <tt>Cc:</tt> header.
0
- # * <tt>bcc</tt> - Takes one or more email address. These addresses will receive a blind carbon copy of your email. Sets the <tt>Bcc:</tt> header.
0
+ # * <tt>bcc</tt> - Takes one or more email addresses. These addresses will receive a blind carbon copy of your email. Sets the <tt>Bcc:</tt> header.
0
+ # * <tt>reply_to</tt> - Takes one or more email addresses. These addresses will be listed as the default recipients when replying to your email. Sets the <tt>Reply-To:</tt> header.
0
# * <tt>sent_on</tt> - The date on which the message was sent. If not set, the header wil be set by the delivery agent.
0
# * <tt>content_type</tt> - Specify the content type of the message. Defaults to <tt>text/plain</tt>.
0
# * <tt>headers</tt> - Specify additional headers to be set for the message, e.g. <tt>headers 'X-Mail-Count' => 107370</tt>.
0
@@ -317,6 +318,10 @@ module ActionMailer #:nodoc:
0
# Specify the from address for the message.
0
adv_attr_accessor :from
0
+ # Specify the address (if different than the "from" address) to direct
0
+ # replies to this message.
0
+ adv_attr_accessor :reply_to
0
# Specify additional headers to be added to the message.
0
adv_attr_accessor :headers
0
@@ -576,13 +581,14 @@ module ActionMailer #:nodoc:
0
- m.subject, = quote_any_if_necessary(charset, subject)
0
- m.to, m.from = quote_any_address_if_necessary(charset, recipients, from)
0
- m.bcc = quote_address_if_necessary(bcc, charset) unless bcc.nil?
0
- m.cc = quote_address_if_necessary(cc, charset) unless cc.nil?
0
+ m.subject, = quote_any_if_necessary(charset, subject)
0
+ m.to, m.from = quote_any_address_if_necessary(charset, recipients, from)
0
+ m.bcc = quote_address_if_necessary(bcc, charset) unless bcc.nil?
0
+ m.cc = quote_address_if_necessary(cc, charset) unless cc.nil?
0
+ m.reply_to = quote_address_if_necessary(reply_to, charset) unless reply_to.nil?
0
m.mime_version = mime_version unless mime_version.nil?
0
- m.date = sent_on.to_time rescue sent_on if sent_on
0
+ m.date = sent_on.to_time rescue sent_on if sent_on
0
headers.each { |k, v| m[k] = v }
0
real_content_type, ctype_attrs = parse_content_type