るりまサーチ

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

別のキーワード

  1. _builtin end
  2. ripper end_seen?
  3. _builtin exclude_end?
  4. _builtin end_with?
  5. range end

ライブラリ

クラス

キーワード

検索結果

<< 1 2 > >>

Net::POPMail#mail -> String (18140.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 (18140.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 (18140.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::SMTP#send_mail(mailsrc, from_addr, *to_addrs) -> () (12308.0)

メールを送信します。

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

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

from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs に...
...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 メールの内容
@param from_addr 送信元のメール...

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

メールを送信します。

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

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

from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs に...
...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 メールの内容
@param from_addr 送信元のメール...

絞り込み条件を変える

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

メールを送信します。

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

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

from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs に...
...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 メールの内容
@param from_addr 送信元のメール...

Net::IMAP#append(mailbox, message, flags = nil, date_time = nil) -> Net::IMAP::TaggedResponse (6201.0)

APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。

...APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。


例:
imap.append("inbox", <<EOF.gsub(/\n/, "\r\n"), [:Seen], Time.now)
Subject: hello
From: someone@example.com
To: somebody@example.com

hello world
EOF

@param mailbox メッセー...

BasicObject#__send__(name, *args) -> object (6173.0)

オブジェクトのメソッド name を args を引数にして呼び出し、メソッドの結果を返します。

...[ruby]{
class Mail
def delete(*args)
"(Mail#delete) - delete " + args.join(',')
end

def send(name, *args)
"(Mail#send) - #{name} #{args.join(',')}"
end

end

mail
= Mail.new
mail
.send :delete, "gentle", "readers" # => "(Mail#send) - delete gentle,readers"
mail
.__send__ :delete, "...
...gentle", "readers" # => "(Mail#delete) - delete gentle,readers"
//}

@see Object#send...

BasicObject#__send__(name, *args) { .... } -> object (6173.0)

オブジェクトのメソッド name を args を引数にして呼び出し、メソッドの結果を返します。

...[ruby]{
class Mail
def delete(*args)
"(Mail#delete) - delete " + args.join(',')
end

def send(name, *args)
"(Mail#send) - #{name} #{args.join(',')}"
end

end

mail
= Mail.new
mail
.send :delete, "gentle", "readers" # => "(Mail#send) - delete gentle,readers"
mail
.__send__ :delete, "...
...gentle", "readers" # => "(Mail#delete) - delete gentle,readers"
//}

@see Object#send...
<< 1 2 > >>