Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Net/SMTP/open_message_stream-i.ri
Arrière
U:RDoc::AnyMethod[iI"open_message_stream:EFI""Net::SMTP#open_message_stream;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I">Opens a message writer stream and gives it to the block. ;TI"BThe stream is valid only in the block, and has these methods:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type: NOTE:@items[ o:RDoc::Markup::ListItem:@label[I"puts(str = '');T; [o; ; [I"outputs STR and CR LF.;To;;[I"print(str);T; [o; ; [I"outputs STR.;To;;[I"printf(fmt, *args);T; [o; ; [I" outputs sprintf(fmt,*args).;To;;[I"write(str);T; [o; ; [I"9outputs STR and returns the length of written bytes.;To;;[I"<<(str);T; [o; ; [I""outputs STR and returns self.;T@o; ; [I"AIf a single CR ("\r") or LF ("\n") is found in the message, ;TI"Bit is converted to the CR LF pair. You cannot send a binary ;TI"message with this method.;T@S:RDoc::Markup::Heading: leveli: textI"Parameters;T@o; ; [I"B+from_addr+ is a String representing the source mail address.;T@o; ; [I"H+to_addr+ is a String or Strings or Array of Strings, representing ;TI"/the destination mail address or addresses.;T@S;;i;I"Example;T@o:RDoc::Markup::Verbatim; [I"7Net::SMTP.start('smtp.example.com', 25) do |smtp| ;TI"Q smtp.open_message_stream('from@example.com', ['dest@example.com']) do |f| ;TI") f.puts 'From: from@example.com' ;TI"' f.puts 'To: dest@example.com' ;TI"( f.puts 'Subject: test message' ;TI" f.puts ;TI"* f.puts 'This is a test message.' ;TI" end ;TI" end ;T:@format0S;;i;I"Errors;T@o; ; [I"This method may raise:;T@o;; :BULLET;[o;;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::ReadTimeout;To;;0; [o; ; [I"IOError;T: @fileI"lib/net/smtp.rb;T:0@omit_headings_from_table_of_contents_below00I"stream;F[[I" ready;Fo;; [ ;@u;0I"(from_addr, *to_addrs);T@uFI" SMTP;TcRDoc::NormalClass00
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages