るりまサーチ

最速Rubyリファレンスマニュアル検索!
252件ヒット [1-100件を表示] (0.079秒)

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. require execute

ライブラリ

クラス

キーワード

検索結果

<< 1 2 3 > >>

Net::POPMail#mail -> String (18134.0)

メールを受信します。

...ェクトを返します。

pop, all, mail はすべて同じ効果ですが、
all と mail は obsolete です。


使用例:

require
'net/pop'

Net::POP3.start('pop.example.com', 110,
'YourAccount', 'YourPassword') {|pop|
pop.mails.each do |m|
puts m.pop
end...
...}


ブロックを利用する例:
require
'net/pop'

Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}

@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムア...

Net::POPMail#mail {|str| .... } -> nil (18134.0)

メールを受信します。

...ェクトを返します。

pop, all, mail はすべて同じ効果ですが、
all と mail は obsolete です。


使用例:

require
'net/pop'

Net::POP3.start('pop.example.com', 110,
'YourAccount', 'YourPassword') {|pop|
pop.mails.each do |m|
puts m.pop
end...
...}


ブロックを利用する例:
require
'net/pop'

Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}

@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムア...

Net::POPMail#mail(io) -> object (18134.0)

メールを受信します。

...ェクトを返します。

pop, all, mail はすべて同じ効果ですが、
all と mail は obsolete です。


使用例:

require
'net/pop'

Net::POP3.start('pop.example.com', 110,
'YourAccount', 'YourPassword') {|pop|
pop.mails.each do |m|
puts m.pop
end...
...}


ブロックを利用する例:
require
'net/pop'

Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}

@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムア...

URI::MailTo#to_mailtext -> String (9107.0)

URI オブジェクトからメールテキスト文字列を生成します。

...トからメールテキスト文字列を生成します。

例:
require
'uri'
p mailto = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
print mailto.to_mailtext

=> #<URI::MailTo:0x20104a0e URL:mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr>
To:...

Net::SMTP#send_mail(mailsrc, from_addr, *to_addrs) -> () (6214.0)

メールを送信します。

...メールを送信します。

mail
src をメールとして送信します。
mail
src は each イテレータを持つ
オブジェクトならなんでも構いません(たとえば String や File)。

from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs に...
...列で渡します。

require
'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}

sendmail は obsolete です。

@param mailsrc メールの内容
@...

絞り込み条件を変える

Net::SMTP#sendmail(mailsrc, from_addr, *to_addrs) -> () (6214.0)

メールを送信します。

...メールを送信します。

mail
src をメールとして送信します。
mail
src は each イテレータを持つ
オブジェクトならなんでも構いません(たとえば String や File)。

from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs に...
...列で渡します。

require
'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}

sendmail は obsolete です。

@param mailsrc メールの内容
@...

URI::MailTo#to_rfc822text -> String (6007.0)

URI オブジェクトからメールテキスト文字列を生成します。

...トからメールテキスト文字列を生成します。

例:
require
'uri'
p mailto = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
print mailto.to_mailtext

=> #<URI::MailTo:0x20104a0e URL:mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr>
To:...

Net::SMTP#send_message(mailsrc, from_addr, *to_addrs) -> () (3114.0)

メールを送信します。

...メールを送信します。

mail
src をメールとして送信します。
mail
src は each イテレータを持つ
オブジェクトならなんでも構いません(たとえば String や File)。

from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs に...
...列で渡します。

require
'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}

sendmail は obsolete です。

@param mailsrc メールの内容
@...

Net::POPMail#all -> String (3034.0)

メールを受信します。

...ェクトを返します。

pop, all, mail はすべて同じ効果ですが、
all と mail は obsolete です。


使用例:

require
'net/pop'

Net::POP3.start('pop.example.com', 110,
'YourAccount', 'YourPassword') {|pop|
pop.mails.each do |m|
puts m.pop
end...
...}


ブロックを利用する例:
require
'net/pop'

Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}

@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムア...
<< 1 2 3 > >>