14件ヒット
[1-14件を表示]
(0.058秒)
別のキーワード
検索結果
-
Net
:: SMTP # disable _ starttls -> () (18201.0) -
その Net::SMTP オブジェクトがSTARTTLSを常に使わないよう設定します。
その Net::SMTP オブジェクトがSTARTTLSを常に使わないよう設定します。
@see Net::SMTP#starttls?, Net::SMTP#enable_starttls, Net::SMTP#enable_starttls_auto -
net
/ smtp (24.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
...でおすすめです。
require 'net/smtp'
Net::SMTP.start( 'smtp.example.com', 25 ) {|smtp|
# use smtp object only in this block
}
smtp-server.example.com は適切な SMTP サーバのアドレスに読みかえてください。
通常は LAN の管理者やプロバイダが SMTP......tp.example.com', 25) {|smtp|
smtp.send_message(<<-EndOfMail, 'from@example.com', 'to@example.net')
From: Your Name <from@example.com>
To: Dest Address <to@example.net>
Subject: test mail
Date: Sat, 23 Jun 2001 16:26:43 +0900
Message-Id: <unique.message.id.string@yourhost.example.com>......るのに STARTTLS を使用したくない場合は Net::SMTP#disable_starttls を使用します。
require 'net/smtp'
# STARTTLSを使用したくない例
smtp = Net::SMTP.new('smtp.example.com', 25)
smtp.disable_starttls
smtp.start do
# send messages ...
end
デフォルトで...