Class: Mail::SmtpEnvelope
- Inherits:
-
Object
- Object
- Mail::SmtpEnvelope
- 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
-
#from ⇒ Object
Returns the value of attribute from.
-
#message ⇒ Object
Returns the value of attribute message.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(mail) ⇒ SmtpEnvelope
constructor
A new instance of SmtpEnvelope.
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. = mail.encoded end |
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
9 10 11 |
# File 'lib/mail/smtp_envelope.rb', line 9 def from @from end |
#message ⇒ Object
Returns the value of attribute message.
9 10 11 |
# File 'lib/mail/smtp_envelope.rb', line 9 def @message end |
#to ⇒ Object
Returns the value of attribute to.
9 10 11 |
# File 'lib/mail/smtp_envelope.rb', line 9 def to @to end |