33件ヒット
[1-33件を表示]
(0.023秒)
ライブラリ
-
net
/ smtp (33)
キーワード
-
read
_ timeout (11) -
read
_ timeout= (11) - ready (11)
検索結果
先頭3件
-
Net
:: SMTP # read _ timeout -> Integer (6124.0) -
読みこみ (read(2) 一回) でブロックしてよい最大秒数を返します。
...読みこみ (read(2) 一回) でブロックしてよい最大秒数を返します。
デフォルトは60(秒)です。
この秒数たっても読みこめなければ例外 TimeoutError を発生します。
@see Net::SMTP#read_timeout=... -
Net
:: SMTP # read _ timeout=(n) (6108.0) -
読み込みでブロックしてよい最大秒数を設定します。
...読み込みでブロックしてよい最大秒数を設定します。
@see Net::SMTP#read_timeout... -
Net
:: SMTP # ready(from _ addr , *to _ addrs) {|f| . . . . } -> () (3101.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...mtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.open_message_stream('from@example.com', 'to@example.net') {|f|
f.puts 'From: from@example.com'
f.puts 'To: to@example.net'
f.puts 'Subject: test mail'
f.puts
f.puts 'This is test mail.'
}
}
ready......発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラーコード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します
@raise Net::SMTPAuthenticationError 送......信に必要な認証を行っていなかった場合に発生します
@raise Net::SMTPUnknownError SMTPエラーコードがプロトコル上不正な場合に発生します
@see Net::SMTP#send_message...