Mailer
------

iw.subscriber try to use the best mailer available.

First get the IMailer adapter::

  >>> from iw.subscriber.interfaces import IMailer
  >>> mailer = IMailer(portal)


By default, the MailHost object is used::

  >>> mailer.mailer
  <SecureMailHost at /plone/MailHost>

If a zope.sendmail utility is found the we use it::

  >>> from iw.email.testing import TestMailDelivery
  >>> zope.component.provideUtility(TestMailDelivery(),
  ...                               name='iw.subscriber.mailer')
  >>> mailer = IMailer(portal)
  >>> mailer.mailer
  <iw.email.testing.TestMailDelivery object at ...>

