Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Net/SMTP/start-c.ri
Arrière
U:RDoc::AnyMethod[iI" start:EFI"Net::SMTP::start;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"?Creates a new Net::SMTP object and connects to the server.;To:RDoc::Markup::BlankLine o; ; [I""This method is equivalent to:;T@o:RDoc::Markup::Verbatim; [I"RNet::SMTP.new(address, port).start(helo_domain, account, password, authtype) ;T:@format0S:RDoc::Markup::Heading: leveli: textI"Example;T@o;; [I"3Net::SMTP.start('your.smtp.server') do |smtp| ;TI"J smtp.send_message msgstr, 'from@example.com', ['dest@example.com'] ;TI" end ;T; 0S;;i;I"Block Usage;T@o; ; [ I"JIf called with a block, the newly-opened Net::SMTP object is yielded ;TI"Pto the block, and automatically closed when the block finishes. If called ;TI"Gwithout a block, the newly-opened Net::SMTP object is returned to ;TI"Hthe caller, and it is the caller's responsibility to close it when ;TI"finished.;T@S;;i;I"Parameters;T@o; ; [I"A+address+ is the hostname or ip address of your smtp server.;T@o; ; [I">+port+ is the port to connect to; it defaults to port 25.;T@o; ; [I"A+helo+ is the _HELO_ _domain_ provided by the client to the ;TI"@server (see overview comments); it defaults to 'localhost'.;T@o; ; [ I"KThe remaining arguments are used for SMTP authentication, if required ;TI"Hor desired. +user+ is the account name; +secret+ is your password ;TI"Ior other authentication token; and +authtype+ is the authentication ;TI"Gtype, one of :plain, :login, or :cram_md5. See the discussion of ;TI"/SMTP Authentication in the overview notes.;T@S;;i;I"Errors;T@o; ; [I"This method may raise:;T@o:RDoc::Markup::List: @type:BULLET:@items[ o:RDoc::Markup::ListItem:@label0; [o; ; [I"!Net::SMTPAuthenticationError;To;;0; [o; ; [I"Net::SMTPServerBusy;To;;0; [o; ; [I"Net::SMTPSyntaxError;To;;0; [o; ; [I"Net::SMTPFatalError;To;;0; [o; ; [I"Net::SMTPUnknownError;To;;0; [o; ; [I"Net::OpenTimeout;To;;0; [o; ; [I"Net::ReadTimeout;To;;0; [o; ; [I"IOError;T: @fileI"lib/net/smtp.rb;T:0@omit_headings_from_table_of_contents_below00I" smtp;F[ I"X(address, port = nil, helo = 'localhost', user = nil, secret = nil, authtype = nil);T@gFI" SMTP;TcRDoc::NormalClass00
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages