James E. Blair | eff5a9d | 2017-06-20 00:00:37 -0700 | [diff] [blame] | 1 | :title: SMTP Driver |
| 2 | |
| 3 | SMTP |
| 4 | ==== |
| 5 | |
| 6 | The SMTP driver supports reporters only. It is used to send email |
| 7 | when items report. |
| 8 | |
| 9 | Connection Configuration |
| 10 | ------------------------ |
| 11 | |
| 12 | **driver=smtp** |
| 13 | |
| 14 | **server** |
| 15 | SMTP server hostname or address to use. |
| 16 | ``server=localhost`` |
| 17 | |
| 18 | **port** |
| 19 | Optional: SMTP server port. |
| 20 | ``port=25`` |
| 21 | |
| 22 | **default_from** |
| 23 | Who the email should appear to be sent from when emailing the report. |
| 24 | This can be overridden by individual pipelines. |
| 25 | ``default_from=zuul@example.com`` |
| 26 | |
| 27 | **default_to** |
| 28 | Who the report should be emailed to by default. |
| 29 | This can be overridden by individual pipelines. |
| 30 | ``default_to=you@example.com`` |
| 31 | |
| 32 | Reporter Configuration |
| 33 | ---------------------- |
| 34 | |
| 35 | A simple email reporter is also available. |
| 36 | |
| 37 | A :ref:`connection<connections>` that uses the smtp driver must be supplied to the |
| 38 | reporter. The connection also may specify a default *To* or *From* |
| 39 | address. |
| 40 | |
| 41 | Each pipeline can overwrite the ``subject`` or the ``to`` or ``from`` address by |
| 42 | providing alternatives as arguments to the reporter. For example, :: |
| 43 | |
| 44 | - pipeline: |
| 45 | name: post-merge |
| 46 | success: |
| 47 | outgoing_smtp: |
| 48 | to: you@example.com |
| 49 | failure: |
| 50 | internal_smtp: |
| 51 | to: you@example.com |
| 52 | from: alternative@example.com |
| 53 | subject: Change {change} failed |