# ActionMailer testing errors rescue... Net::

**URL:** <https://www.ruby-forum.com/t/actionmailer-testing-errors-rescue-net/107863>\
**Category:** Rails\
**Created:** [June 26, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/actionmailer-testing-errors-rescue-net/107863 "2007-06-26T23:24:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [June 26, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/actionmailer-testing-errors-rescue-net/107863/1 "2007-06-26T23:24:17Z")

</div>

I am testing various mails sent by my app (on localhost with Postfix

- OS X of course…)  
no proble when postfix is running…

but if Postfix is not running I don’t have any raised error…  
I tried using the NET lib…

rescue Net::SMTPFatalError, Net::SMTPServerBusy, Net::SMTPUnknownError,  
Net::SMTPSyntaxError, TimeoutError

no matter cannot get an error…

any info or link will be welcome… (especially on net lib…)

thanks

kad
