class Mail::Message

def sender( val = nil )

mail.sender #=> 'mikel@test.lindsaar.net'
mail.sender 'Mikel '

Example:

Also allows you to set the value by passing a value as a parameter

mail.sender #=> 'mikel@test.lindsaar.net'
mail.sender = 'Mikel '

Example:

spec. A sender per RFC 2822 must be a single address.
Returns the Sender value of the mail object, as a single string of an address
def sender( val = nil )
  default :sender, val
end