Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install iw.recipe.sendmail

How to install iw.recipe.sendmail

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install iw.recipe.sendmail
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.3 Available View build log
Windows (64-bit)
0.2.3 Available View build log
Mac OS X (10.5+)
0.2.3 Available View build log
Linux (32-bit)
0.2.3 Available View build log
Linux (64-bit)
0.2.3 Available View build log
 
Author
License
GPL
Lastest release
version 0.2.3 on Jan 5th, 2011
.. contents::

.. Note to recipe author!
---------------------
Update the following URL to point to your code repository or remove
it if one is not available.

Code repository: http://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb/iw.recipe.sendmail

Change history
**************

trunk (2008-05-21)
==================

- xxx [Ingeniweb]

0.2.3 (2008-05-21)
==================

- xxx [Ingeniweb]

0.2.3 (2008-05-21)
==================

- xxx [Ingeniweb]

0.2.3 (2008-05-21)
==================

- xxx [Ingeniweb]

0.2.3 (2008-05-20)
==================

- xxx [Ingeniweb]

0.2.3 (2008-05-20)
==================

- xxx [Ingeniweb]

0.2.3 (2008-05-20)
==================

- xxx [Ingeniweb]

0.2.3 (2008-05-20)
==================

- xxx [Ingeniweb]

0.2.3 (2008-05-20)
==================

- xxx [Ingeniweb]

0.2.3 (2008-05-20)
==================

- xxx [Ingeniweb]

0.2.3 (2008-05-20)
==================

- xxx [Ingeniweb]

0.2.2 (2008-05-19)
==================

- Fix #60: create the package-includes directory if it doesn't exist [encolpe].

0.2.1 (2007-02-09)
==================

- Auto include zope.sendmail in generated zcml [gawel].

0.2 (2007-02-09)
==================

- Added username / password options [gawel].

0.1 (2007-02-09)
==================

- Created recipe with ZopeSkel [gawel].





Detailed Documentation
**********************

Supported options
=================

The recipe supports the following options:

.. Note to recipe author!
----------------------
For each option the recipe uses you shoud include a description
about the purpose of the option, the format and semantics of the
values it accepts, whether it is mandatory or optional and what the
default value is if it is omitted.

zope2location

A path to a Zope2 instance

name

The name of the mail queue delivery utility. Default to iw.mailer.

host

Your smtp host. Default to localhost.

port

Yout smtp port. Default to 25.

username

Login name if required by smtp server.

password

Password if required by smtp server

mailqueue

A path to an existing directory to create a mailqueue. Default to var/.
Be aware that this need to be an *absolute* path.


Example usage
=============

The PyPI page for zc.buildout contains documentation about the test
environment.

http://pypi.python.org/pypi/zc.buildout#testing-support

Below is a skeleton doctest that you can start with when building
your own tests.

We'll start by creating a buildout that uses the recipe::

>>> write('buildout.cfg',
... """
... [buildout]
... parts = mailer
...
... [mailer]
... recipe = iw.recipe.sendmail
... zope2location=parts/zope2
... host = smtp.example.com
... """)

Simulate the Zope2 part::

>>> mkdir('parts','zope2')
>>> mkdir('parts','zope2','etc')

Running the buildout gives us::

>>> print system(buildout)
Installing mailer.
iw.sendmail-configure.zcml: Generated file 'iw.sendmail-configure.zcml'.

And see the results zcml stub::

>>> cat('parts','zope2','etc','package-includes',
...                           'iw.sendmail-configure.zcml')

















Let's try with all parameters::

>>> write('buildout.cfg',
... """
... [buildout]
... parts = mailer
...
... [mailer]
... recipe = iw.recipe.sendmail
... zope2location=parts/zope2
... name = mailer
... host = smtp.example2.com
... port = 50
... username = gael
... password = xxx
... mailqueue = ${buildout:directory}
... """)

Running the buildout again::

>>> print system(buildout)
Uninstalling mailer.
Installing mailer.
iw.sendmail-configure.zcml: Generated file 'iw.sendmail-configure.zcml'.

And see the results zcml stub::

>>> cat('parts','zope2','etc','package-includes',
...                           'iw.sendmail-configure.zcml')


















Contributors
************

Ingeniweb, Gael Pasgrimaud
Ingeniweb, Encolpe Degoute

Download
********

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:5

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.