44件ヒット
[1-44件を表示]
(0.318秒)
検索結果
先頭4件
-
Net
:: SMTP # open _ message _ stream(from _ addr , *to _ addrs) {|f| . . . . } -> () (18321.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...アドレスを文字列で渡します。
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: from@example.com'
f.puts 'To: to@example.net'
f.puts 'Subject: test mail'... -
Net
:: SMTP # ready(from _ addr , *to _ addrs) {|f| . . . . } -> () (3221.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...アドレスを文字列で渡します。
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: from@example.com'
f.puts 'To: to@example.net'
f.puts 'Subject: test mail'... -
Net
:: SMTP # data {|f| . . . . } -> Net :: SMTP :: Response (213.0) -
DATA コマンドを送ります。
...えた場合にはそのブロックにストリームオブジェクトが渡されます
(Net::SMTP#open_message_stream参考)。
通常は Net::SMTP#send_message, Net::SMTP#open_message_stream で
DATA が送られるため利用する必要はないはずです。
@param message メールの... -
Net
:: SMTP # data(message) -> Net :: SMTP :: Response (113.0) -
DATA コマンドを送ります。
...えた場合にはそのブロックにストリームオブジェクトが渡されます
(Net::SMTP#open_message_stream参考)。
通常は Net::SMTP#send_message, Net::SMTP#open_message_stream で
DATA が送られるため利用する必要はないはずです。
@param message メールの...