Method: RMail::Address#address
- Defined in:
- lib/rmail/address.rb
#address ⇒ Object
Returns the email address portion of the address (i.e. without a display name, angle addresses, or comments).
The string returned is not suitable for insertion into an e-mail. RFC2822 quoting rules are not followed. The raw address is returned instead.
For example, if the local part requires quoting, this function will not perform the quoting (see #format for that). So this function can returns strings such as:
"address with no [email protected]"
See also #format
212 213 214 215 216 217 218 |
# File 'lib/rmail/address.rb', line 212 def address if @domain.nil? @local else @local + '@' + @domain end end |