Code repository: http://svn.somewhere.com/…
Change history
0.2 (2007-02-9)
Added username / password options [gawel].
0.1 (2007-02-9)
Created recipe with ZopeSkel [gawel].
Detailed Documentation
Supported options
The recipe supports the following options:
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.
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')
>>> mkdir('parts','zope2','etc','package-includes')
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')
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:zcml="http://namespaces.zope.org/zcml"
xmlns:mail="http://namespaces.zope.org/mail">
<BLANKLINE>
<mail:smtpMailer
name="iw.smtp"
hostname="smtp.example.com"
port="25"
/>
<BLANKLINE>
<mail:queuedDelivery
name="iw.mailer"
permission="zope.Public"
mailer="iw.smtp"
queuePath="/sample-buildout/var/mailqueue"
/>
<BLANKLINE>
<configure zcml:condition="installed iw.mailhost">
<include package="iw.mailhost" />
</configure>
<BLANKLINE>
</configure>
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')
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:zcml="http://namespaces.zope.org/zcml"
xmlns:mail="http://namespaces.zope.org/mail">
<BLANKLINE>
<mail:smtpMailer
name="iw.smtp"
hostname="smtp.example2.com"
port="50"
username="gael"
password="xxx"
/>
<BLANKLINE>
<mail:queuedDelivery
name="mailer"
permission="zope.Public"
mailer="iw.smtp"
queuePath="/sample-buildout/mailqueue"
/>
<BLANKLINE>
<configure zcml:condition="installed iw.mailhost">
<include package="iw.mailhost" />
</configure>
<BLANKLINE>
</configure>
Contributors
Ingeniweb, Gael Pasgrimaud
Download
Metadata
Release files for iw.recipe.sendmail 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| iw.recipe.sendmail-0.2.tar.gz | 11.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iw.recipe.sendmail-0.2-py2.4.egg | Legacy Egg format | - | - | Details |
Total release size: 21.6 kB
Release files / iw.recipe.sendmail-0.2.tar.gz
| Download URL | iw.recipe.sendmail-0.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6269ffb88d8a7f8c2e1d89144ea2298dcbce70ed7fe4b26a749d34b4c7d82abc
|
|
BLAKE2b-256 checksum How to use checksums |
5c79790487ae8786fe93a9e113c0bef0a1241c5586b99000150cd17703e731ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / iw.recipe.sendmail-0.2-py2.4.egg
| Download URL | iw.recipe.sendmail-0.2-py2.4.egg |
|---|---|
| Size | 9.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
d6db0bb10080a09072e640033a00d2383728a85d5970d7f5d39aad2c71afa014
|
|
BLAKE2b-256 checksum How to use checksums |
9c0b5d8b26d0de538162aa349c1a793ebabb31f2572432952f1b7e511f3cadf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for iw.recipe.sendmail 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.