Class: TMail::Mail

Class | TMail::Mail
In: | lib/action_mailer/vendor/tmail-1.1.0/tmail/attachments.rb lib/action_mailer/vendor/tmail-1.1.0/tmail/facade.rb lib/action_mailer/vendor/tmail-1.1.0/tmail/interface.rb lib/action_mailer/vendor/tmail-1.1.0/tmail/mail.rb lib/action_mailer/vendor/tmail-1.1.0/tmail/net.rb lib/action_mailer/vendor/tmail-1.1.0/tmail/obsolete.rb lib/action_mailer/vendor/tmail-1.1.0/tmail/quoting.rb
Parent: | Object

facade.rb

### Methods

[] []= accept add_date add_message_id attachment? attachments base64_decode base64_decode base64_encode base64_encode bcc bcc bcc= bcc= bcc_addrs bcc_addrs bcc_addrs= bcc_addrs= body body= body_port boundary cc cc cc= cc= cc_addrs cc_addrs cc_addrs= cc_addrs= charset charset charset= charset= clear content_disposition content_disposition content_disposition= content_disposition= content_transfer_encoding content_transfer_encoding content_transfer_encoding= content_transfer_encoding= content_type content_type content_type= content_type= create_empty_mail create_forward create_reply create_reply create_reply date date date= date= delete delete_if delete_no_send_fields destinations destinations disposition disposition disposition= disposition= disposition_param disposition_param each each_dest each_dest each_dest each_destination each_destination each_field each_header each_header_name each_key each_pair each_part each_value encoding encoding encoding= encoding= epilogue epilogue= error_reply_addresses error_reply_addresses fetch friendly_from friendly_from from from from= from= from_addr from_address from_address= from_addrs from_addrs from_addrs= from_addrs= from_phrase has_attachments? has_key? has_value? header header_string header_string in_reply_to in_reply_to in_reply_to= in_reply_to= include? indexes indices inspect key? keys load main_type main_type message_id message_id message_id= message_id= mime_encode mime_encode_binary mime_encode_multipart mime_encode_singlepart mime_encode_text mime_version mime_version mime_version= mime_version= msgid msgid msgid= multipart? multipart? new ordered_each parse parts preamble= quoted_body quoted_subject quoted_subject ready_to_send references references references= references= reply_addresses reply_addresses reply_to reply_to reply_to= reply_to= reply_to_addrs reply_to_addrs reply_to_addrs= reply_to_addrs= send_text_to send_to send_to_0 sender sender sender= sender= sender_addr sender_addr sender_addr= sender_addr= set_content_disposition set_content_disposition set_content_type set_content_type set_disposition set_disposition setup_forward setup_reply store strftime strftime sub_header sub_type sub_type subject subject subject subject= subject= to to to= to= to_addrs to_addrs to_addrs= to_addrs= transfer_encoding transfer_encoding transfer_encoding= transfer_encoding= type_param type_param unquoted_body value? values values_at write_back

### Included Modules

TextUtils TextUtils StrategyInterface

### Constants

ALLOW_MULTIPLE | = | { 'received' => true, 'resent-date' => true, 'resent-from' => true, 'resent-sender' => true, 'resent-to' => true, 'resent-cc' => true, 'resent-bcc' => true, 'resent-message-id' => true, 'comments' => true, 'keywords' => true |  | header
USE_ARRAY | = | ALLOW_MULTIPLE
FIELD_ORDER | = | %w( return-path received resent-date resent-from resent-sender resent-to resent-cc resent-bcc resent-message-id date from sender reply-to to cc bcc message-id in-reply-to references subject comments keywords mime-version content-type content-transfer-encoding content-disposition content-description )
NOSEND_FIELDS | = | %w( received bcc )

### External Aliases

load | -> | load_from
load | -> | loadfrom
body | -> | preamble

### Attributes

port | [R] |

### Public Class methods

boundary()
load( fname )
msgid()
new( port = nil, conf = DEFAULT_CONFIG )
parse( str )

### Public Instance methods

[]( key )
[]=( key, val )
accept( strategy )
add_date()
add_message_id( fqdn = nil )
attachment?(part)
attachments()
base64_decode()
base64_decode()
base64_encode()
base64_encode()
bcc( default = nil )
bcc( default = nil )
bcc=( *strs )
bcc=( *strs )
bcc_addrs( default = nil )
bcc_addrs( default = nil )
bcc_addrs=( arg )
bcc_addrs=( arg )
body(to_charset = 'utf-8', &block)
body=( str )
body_port()

body

cc( default = nil )
cc( default = nil )
cc=( *strs )
cc=( *strs )
cc_addrs( default = nil )
cc_addrs( default = nil )
cc_addrs=( arg )
cc_addrs=( arg )
charset( default = nil )
charset( default = nil )
charset=( str )
charset=( str )
clear()
content_disposition( default = nil )

Alias for disposition

content_disposition( default = nil )

Alias for disposition

content_disposition=( str, params = nil )

Alias for set_disposition

content_disposition=( str, params = nil )

Alias for set_disposition

content_transfer_encoding( default = nil )

Alias for transfer_encoding

content_transfer_encoding( default = nil )

Alias for transfer_encoding

content_transfer_encoding=( str )

Alias for transfer_encoding=

content_transfer_encoding=( str )

Alias for transfer_encoding=

content_type( default = nil )
content_type( default = nil )
content_type=( str, sub = nil, param = nil )

Alias for set_content_type

content_type=( str, sub = nil, param = nil )

Alias for set_content_type

create_empty_mail()
create_forward()
create_reply()
create_reply()

utils

create_reply()

utils

date( default = nil )

date time

date( default = nil )

date time

date=( time )
date=( time )
delete( key )
delete_if() {|key, v| ...}
delete_no_send_fields()
destinations( default = nil )
destinations( default = nil )
disposition( default = nil )
disposition( default = nil )
disposition=( str, params = nil )

Alias for set_disposition

disposition=( str, params = nil )

Alias for set_disposition

disposition_param( name, default = nil )
disposition_param( name, default = nil )
each( &block )
each_dest( &block )

Alias for each_destination

each_dest( &block )

Alias for each_destination

each_dest( &block )

Alias for each_destination

each_destination( ) {|i| ...}
each_destination( ) {|i| ...}
each_field( &block )
each_header() {|key, v| ...}
each_header_name( &block )
each_key( &block )

Alias for each_header_name

each_pair()

Alias for each_header

each_part( &block )
each_value( &block )

Alias for each_field

encoding( default = nil )

Alias for transfer_encoding

encoding( default = nil )

Alias for transfer_encoding

encoding=( str )

Alias for transfer_encoding=

encoding=( str )

Alias for transfer_encoding=

epilogue()
epilogue=( str )
error_reply_addresses( default = nil )
error_reply_addresses( default = nil )
fetch( key )

Alias for #[]

friendly_from( default = nil )
friendly_from( default = nil )
from( default = nil )
from( default = nil )
from=( *strs )
from=( *strs )
from_addr( default = nil )
from_address( default = nil )
from_address=( arg )

Alias for from_addrs=

from_addrs( default = nil )

originator

from_addrs( default = nil )

originator

from_addrs=( arg )
from_addrs=( arg )
from_phrase( default = nil )
has_attachments?()
has_key?( key )

Alias for key?

has_value?( val )

Alias for value?

header()
header_string( name, default = nil )
header_string( name, default = nil )
in_reply_to( default = nil )
in_reply_to( default = nil )
in_reply_to=( *idstrs )
in_reply_to=( *idstrs )
include?( key )

Alias for key?

indexes( *args )

Alias for values_at

indices( *args )

Alias for values_at

inspect()
key?( key )
keys()
main_type( default = nil )
main_type( default = nil )
message_id( default = nil )

identity & threading

message_id( default = nil )

identity & threading

message_id=( str )
message_id=( str )
mime_encode()
mime_encode_binary( body )
mime_encode_multipart( top = true )
mime_encode_singlepart()
mime_encode_text( body )
mime_version( default = nil )

MIME headers

mime_version( default = nil )

MIME headers

mime_version=( m, opt = nil )
mime_version=( m, opt = nil )
msgid( default = nil )

Alias for message_id

msgid=( str )

Alias for message_id=

multipart?()
multipart?()
ordered_each() {|name, v| ...}
parts()
preamble=( str )

Alias for body=

quoted_body()
quoted_subject( default = nil )

Alias for subject

quoted_subject( default = nil )

Alias for subject

ready_to_send()
references( default = nil )
references( default = nil )
references=( *strs )
references=( *strs )
reply_addresses( default = nil )
reply_addresses( default = nil )
reply_to( default = nil )
reply_to( default = nil )
reply_to=( *strs )
reply_to=( *strs )
reply_to_addrs( default = nil )
reply_to_addrs( default = nil )
reply_to_addrs=( arg )
reply_to_addrs=( arg )
send_text_to( smtp )
send_to( smtp )
send_to_0( smtp, from, to )
sender( default )
sender( default )
sender=( str )
sender=( str )
sender_addr( default = nil )
sender_addr( default = nil )
sender_addr=( addr )
sender_addr=( addr )
set_content_disposition( str, params = nil )

Alias for set_disposition

set_content_disposition( str, params = nil )

Alias for set_disposition

set_content_type( str, sub = nil, param = nil )
set_content_type( str, sub = nil, param = nil )
set_disposition( str, params = nil )
set_disposition( str, params = nil )
setup_forward( mail )
setup_reply( m )
store( key, val )

Alias for #[]=

strftime( fmt, default = nil )
strftime( fmt, default = nil )
sub_header(key, param)
sub_type( default = nil )
sub_type( default = nil )
subject( default = nil )

subject

subject( default = nil )

subject

subject(to_charset = 'utf-8')
subject=( str )
subject=( str )
to( default = nil )
to( default = nil )
to=( *strs )
to=( *strs )
to_addrs( default = nil )

destination

to_addrs( default = nil )

destination

to_addrs=( arg )
to_addrs=( arg )
transfer_encoding( default = nil )
transfer_encoding( default = nil )
transfer_encoding=( str )
transfer_encoding=( str )
type_param( name, default = nil )
type_param( name, default = nil )
unquoted_body(to_charset = 'utf-8')
value?( val )
values()
values_at( *args )
write_back( eol = "\n", charset = 'e' )

[Validate]