るりまサーチ

最速Rubyリファレンスマニュアル検索!
28件ヒット [1-28件を表示] (0.113秒)
トップページ > クエリ:I[x] > クエリ:param[x] > クエリ:new[x] > クエリ:add[x] > クラス:Net::SMTP[x]

別のキーワード

  1. net/imap param
  2. win32ole win32ole_param
  3. win32ole_param new
  4. win32ole_param name
  5. win32ole_param retval?

ライブラリ

検索結果

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = 'localhost', user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) -> Net::SMTP (361.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...ョンを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP
.new(address, port).start(helo, user, password, authtype)

このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブロックを呼...
...自動的に接続を閉じます。
ブロックを与えなかった場合には新しく作られた Net::SMTP オブジェクトが
返されます。この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。

user と password の両方が与えられた場...
...in, :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 接続するサーバをホスト名もしくはIPアドレスで指定します
@param...
...ます。


以下と同じです。

require 'net/smtp'
Net::SMTP
.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)

このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブ...

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = 'localhost', user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) {|smtp| .... } -> object (361.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...ョンを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP
.new(address, port).start(helo, user, password, authtype)

このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブロックを呼...
...自動的に接続を閉じます。
ブロックを与えなかった場合には新しく作られた Net::SMTP オブジェクトが
返されます。この場合終了時に Net::SMTP#finish を呼ぶのは利用者の責任と
なります。

user と password の両方が与えられた場...
...in, :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 接続するサーバをホスト名もしくはIPアドレスで指定します
@param...
...ます。


以下と同じです。

require 'net/smtp'
Net::SMTP
.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)

このメソッドにブロックを与えた場合には、新しく作られた Net::SMTP オブジェクト
を引数としてそのブ...

Net::SMTP.start(address, port = Net::SMTP.default_port, tls_verify: true, tls_hostname: nil, helo: 'localhost', user: nil, password: nil, authtype: DEFAULT_AUTH_TYPE) -> Net::SMTP (261.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 の両方が与えられた場...
...in, :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 接続するサーバをホスト名もしくはIPアドレスで指定します
@param...

Net::SMTP.start(address, port = Net::SMTP.default_port, tls_verify: true, tls_hostname: nil, helo: 'localhost', user: nil, password: nil, authtype: DEFAULT_AUTH_TYPE) {|smtp| ... } -> object (261.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 の両方が与えられた場...
...in, :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 接続するサーバをホスト名もしくはIPアドレスで指定します
@param...