検索結果
先頭5件
- Net
:: SMTP # helo(domain) -> Net :: SMTP :: Response - 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 , 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 , 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 # helo(domain) -> Net :: SMTP :: Response (27242.0) -
HELO コマンドを送ります(標準的な SMTP を使います)。
...HELO コマンドを送ります(標準的な SMTP を使います)。
通常は Net::SMTP.start, Net::SMTP#start で HELO が
送られるため利用する必要はないはずです。
@param domain HELOで送るドメイン名... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (9376.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブロッ......に自動的に接続を閉じます。
ブロックを与えなかった場合には新しく作られた Net::SMTP オブジェクトが
返されます。この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
user と password の両方が与えられた......authtype は使用する認証のタイプで、
シンボルで :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 接続するサー... -
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 (9376.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブロッ......に自動的に接続を閉じます。
ブロックを与えなかった場合には新しく作られた Net::SMTP オブジェクトが
返されます。この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
user と password の両方が与えられた......authtype は使用する認証のタイプで、
シンボルで :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 接続するサー... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (9365.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo, user, password, authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブロックを呼び、ブ......に自動的に接続を閉じます。
ブロックを与えなかった場合には新しく作られた Net::SMTP オブジェクトが
返されます。この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
user と password の両方が与えられた......authtype は使用する認証のタイプで、
シンボルで :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 接続するサー... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object (9276.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブロッ......に自動的に接続を閉じます。
ブロックを与えなかった場合には新しく作られた Net::SMTP オブジェクトが
返されます。この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
user と password の両方が与えられた......authtype は使用する認証のタイプで、
シンボルで :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 接続するサー... -
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 (9276.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブロッ......に自動的に接続を閉じます。
ブロックを与えなかった場合には新しく作られた Net::SMTP オブジェクトが
返されます。この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
user と password の両方が与えられた......authtype は使用する認証のタイプで、
シンボルで :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 接続するサー... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object (9265.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo, user, password, authtype)
このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブロックを呼び、ブ......に自動的に接続を閉じます。
ブロックを与えなかった場合には新しく作られた Net::SMTP オブジェクトが
返されます。この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
user と password の両方が与えられた......authtype は使用する認証のタイプで、
シンボルで :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 接続するサー... -
Net
:: SMTP # start(helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (9224.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...。
ブロックを与えなかった場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で......場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラーコ......ード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します... -
Net
:: SMTP # start(helo: & # 39;localhost& # 39; , user: nil , password: nil , authtype: DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (9224.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...。
ブロックを与えなかった場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で......場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラーコ......ード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します... -
Net
:: SMTP # start(helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (9221.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...。
ブロックを与えなかった場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で......場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラーコ......ード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します... -
Net
:: SMTP # start(helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object (9124.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...。
ブロックを与えなかった場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で......場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラーコ......ード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します... -
Net
:: SMTP # start(helo: & # 39;localhost& # 39; , user: nil , password: nil , authtype: DEFAULT _ AUTH _ TYPE) {|smtp| . . . } -> object (9124.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...。
ブロックを与えなかった場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で......場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラーコ......ード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します... -
Net
:: SMTP # start(helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object (9121.0) -
サーバにコネクションを張り、同時に SMTP セッションを開始します。
...。
ブロックを与えなかった場合には自分自身を返します。
この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。
@param helo HELO で名乗るドメイン名です
@param user 認証で使うアカウント名
@param password 認証で......場合に発生します
@raise Net::SMTPUnsupportedCommand STARTTLSをサポートしていないサーバでSTARTTLSを利用しようとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMTPエラーコ......ード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します... -
net
/ smtp (186.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
...ックを使うと File.open と同じように終端処理を自動的にやってくれる
のでおすすめです。
require 'net/smtp'
Net::SMTP.start( 'smtp.example.com', 25 ) {|smtp|
# use smtp object only in this block
}
smtp-server.example.com は適切な SMTP サーバのア......MTP サーバを用意してくれているはずです。
セッションが開いたらあとは Net::SMTP#send_message
でメールを流しこむだけです。
require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.send_message(<<-EndOfMail, 'from@example.com', 'to......p'
Net::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...