Class: Net::SMTP
- Inherits:
-
Object
- Object
- Net::SMTP
- Defined in:
- lib/vpopmail/message.rb
Overview
class: SMTP {{{ ++
Instance Method Summary collapse
-
#validAddress?(p_address, p_local) ⇒ Boolean
————————————————————————————– method: validAddress? {{{ ++.
Instance Method Details
#validAddress?(p_address, p_local) ⇒ Boolean
method: validAddress? {{{ ++
Possible Exceptions
-
SMTPServerBusy
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/vpopmail/message.rb', line 33 def validAddress?(p_address, p_local) begin mailfrom p_local rcptto p_address rescue SMTPServerBusy => p_e raise p_e rescue SMTPFatalError return false rescue Exception => p_e STDERR.puts "Unknown Error! #{p_e}" return false ensure begin getok('RSET') rescue end end return true end |