るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
5件ヒット [1-5件を表示] (0.034秒)

別のキーワード

  1. httpstatus rc_see_other
  2. webrick/httpstatus rc_see_other
  3. rc_see_other webrick/httpstatus
  4. rc_see_other webrick::httpstatus

クラス

キーワード

検索結果

Net::SMTP#open_message_stream(from_addr, *to_addrs) {|f| .... } -> () (18328.0)

メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。

...主のメールアドレス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。

require 'net/smtp'

Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.open_message_stream('from@example.com', 'to@example.net') {|f|
f.puts 'From: fro...

Net::SMTP#ready(from_addr, *to_addrs) {|f| .... } -> () (9028.0)

メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。

...主のメールアドレス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。

require 'net/smtp'

Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.open_message_stream('from@example.com', 'to@example.net') {|f|
f.puts 'From: fro...

Net::SMTP#inspect -> String (358.0)

@see Object#inspect

@see Object#inspect

Net::SMTP#open_timeout -> Integer (328.0)

接続時に待つ最大秒数を返します。

接続時に待つ最大秒数を返します。

デフォルトは30(秒)です。
この秒数たってもコネクションが
開かなければ例外 TimeoutError を発生します。

@see Net::SMTP#open_timeout=

Net::SMTP#read_timeout -> Integer (328.0)

読みこみ (read(2) 一回) でブロックしてよい最大秒数を返します。

読みこみ (read(2) 一回) でブロックしてよい最大秒数を返します。

デフォルトは60(秒)です。
この秒数たっても読みこめなければ例外 TimeoutError を発生します。

@see Net::SMTP#read_timeout=

絞り込み条件を変える