HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.7.4/doc/mail-2.7.1/ri/Mail/defaults-c.ri
U:RDoc::AnyMethod[iI"
defaults:ETI"Mail::defaults;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"USets the default delivery method and retriever method for all new Mail objects. ;TI"XThe delivery_method and retriever_method default to :smtp and :pop3, with defaults ;TI"	set.;To:RDoc::Markup::BlankLineo;
;	[I"PSo sending a new email, if you have an SMTP server running on localhost is ;TI"as easy as:;T@o:RDoc::Markup::Verbatim;	[I"Mail.deliver do
;TI")  to      'mikel@test.lindsaar.net'
;TI"'  from    'bob@test.lindsaar.net'
;TI"  subject 'hi there!'
;TI"   body    'this is a body'
;TI"	end
;T:@format0o;
;	[I"WIf you do not specify anything, you will get the following equivalent code set in ;TI"every new mail object:;T@o;;	[I"Mail.defaults do
;TI"F  delivery_method :smtp, { :address              => "localhost",
;TI"=                           :port                 => 25,
;TI"R                           :domain               => 'localhost.localdomain',
;TI">                           :user_name            => nil,
;TI">                           :password             => nil,
;TI">                           :authentication       => nil,
;TI"A                           :enable_starttls_auto => true  }
;TI"
;TI"F  retriever_method :pop3, { :address             => "localhost",
;TI">                            :port                => 995,
;TI">                            :user_name           => nil,
;TI">                            :password            => nil,
;TI"@                            :enable_ssl          => true }
;TI"	end
;TI"
;TI"7Mail.delivery_method.new  #=> Mail::SMTP instance
;TI"7Mail.retriever_method.new #=> Mail::POP3 instance
;T;
0o;
;	[I"TEach mail object inherits the default set in Mail.delivery_method, however, on ;TI"4a per email basis, you can override the method:;T@o;;	[I" mail.delivery_method :smtp
;T;
0o;
;	[I"9Or you can override the method and pass in settings:;T@o;;	[I"8mail.delivery_method :smtp, :address => 'some.host';T;
0:
@fileI"lib/mail/mail.rb;T:0@omit_headings_from_table_of_contents_below000[I"
(&block);T@BFI"	Mail;TcRDoc::NormalModule00