Class: Mail::SmtpEnvelope

Inherits:
Object
  • Object
show all
Defined in:
lib/mail/smtp_envelope.rb

Overview

:nodoc:

Constant Summary collapse

MAX_ADDRESS_BYTESIZE =

Reasonable cap on address length to avoid SMTP line length overflow on old SMTP servers.

2000

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mail) ⇒ SmtpEnvelope

Returns a new instance of SmtpEnvelope.



11
12
13
14
15
# File 'lib/mail/smtp_envelope.rb', line 11

def initialize(mail)
  self.from = mail.smtp_envelope_from
  self.to = mail.smtp_envelope_to
  self.message = mail.encoded
end

Instance Attribute Details

#fromObject

Returns the value of attribute from.



9
10
11
# File 'lib/mail/smtp_envelope.rb', line 9

def from
  @from
end

#messageObject

Returns the value of attribute message.



9
10
11
# File 'lib/mail/smtp_envelope.rb', line 9

def message
  @message
end

#toObject

Returns the value of attribute to.



9
10
11
# File 'lib/mail/smtp_envelope.rb', line 9

def to
  @to
end