検索結果
先頭5件
- Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP - Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object - Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , tls _ verify: true , tls _ hostname: nil , helo: & # 39;localhost& # 39; , user: nil , password: nil , authtype: DEFAULT _ AUTH _ TYPE) -> Net :: SMTP - Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , tls _ verify: true , tls _ hostname: nil , helo: & # 39;localhost& # 39; , user: nil , password: nil , authtype: DEFAULT _ AUTH _ TYPE) {|smtp| . . . } -> object - Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP
-
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (18250.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::S......使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。
Example:
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}
@param address 接続するサーバをホス......トは 25 です
@param tls_verify サーバー証明書を検証するか否か
@param tls_hostname サーバー証明書のホスト名
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object (18250.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::S......使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。
Example:
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}
@param address 接続するサーバをホス......トは 25 です
@param tls_verify サーバー証明書を検証するか否か
@param tls_hostname サーバー証明書のホスト名
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , tls _ verify: true , tls _ hostname: nil , helo: & # 39;localhost& # 39; , user: nil , password: nil , authtype: DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (18250.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::S......使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。
Example:
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}
@param address 接続するサーバをホス......トは 25 です
@param tls_verify サーバー証明書を検証するか否か
@param tls_hostname サーバー証明書のホスト名
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , tls _ verify: true , tls _ hostname: nil , helo: & # 39;localhost& # 39; , user: nil , password: nil , authtype: DEFAULT _ AUTH _ TYPE) {|smtp| . . . } -> object (18250.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::S......使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。
Example:
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}
@param address 接続するサーバをホス......トは 25 です
@param tls_verify サーバー証明書を検証するか否か
@param tls_hostname サーバー証明書のホスト名
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (18240.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...、サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo, user, password, authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引......使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。
Example:
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}
@param address 接続するサーバをホス......トは 25 です
@param tls_verify サーバー証明書を検証するか否か
@param tls_hostname サーバー証明書のホスト名
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object (18240.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...、サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo, user, password, authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引......使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。
Example:
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}
@param address 接続するサーバをホス......トは 25 です
@param tls_verify サーバー証明書を検証するか否か
@param tls_hostname サーバー証明書のホスト名
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype... -
Net
:: SMTP # start(helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (18220.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype......します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合... -
Net
:: SMTP # start(helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object (18220.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype......します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合... -
Net
:: SMTP # start(helo: & # 39;localhost& # 39; , user: nil , password: nil , authtype: DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (18220.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype......します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合... -
Net
:: SMTP # start(helo: & # 39;localhost& # 39; , user: nil , password: nil , authtype: DEFAULT _ AUTH _ TYPE) {|smtp| . . . } -> object (18220.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype......します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合... -
Net
:: SMTP # start(helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (18216.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype......します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合... -
Net
:: SMTP # start(helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object (18216.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で使うパスワード
@param authtype......します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合... -
Net
:: SMTP # helo(domain) -> Net :: SMTP :: Response (18141.0) -
HELO コマンドを送ります(標準的な SMTP を使います)。
...HELO コマンドを送ります(標準的な SMTP を使います)。
通常は Net::SMTP.start, Net::SMTP#start で HELO が
送られるため利用する必要はないはずです。
@param domain HELOで送るドメイン名... -
net
/ smtp (174.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
...SMTP.start でセッションを開きます。
第一引数がサーバのアドレスで第二引数がポート番号です。
ブロックを使うと File.open と同じように終端処理を自動的にやってくれる
のでおすすめです。
require 'net/smtp'
Net::SMTP.start( 's......。
セッションが開いたらあとは Net::SMTP#send_message
でメールを流しこむだけです。
require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.send_message(<<-EndOfMail, 'from@example.com', 'to@example.net')
From: Your Name <from@example.com>
T......et::SMTP.start('your.smtp.server', 25) {|smtp|
File.open('Mail/draft/1') {|f|
smtp.send_message f, 'from@example.com', 'to@example.net'
}
}
=== HELO ドメイン
SMTP ではメールを送る側のホストの名前 (HELO ドメインと呼ぶ) を要求
されます。HELO ドメ...