blob: 6f24355fe057c8b7c46a40fb0bb1fe839e5f4822 [file] [log] [blame]
James E. Blaireff5a9d2017-06-20 00:00:37 -07001:title: SMTP Driver
2
3SMTP
4====
5
6The SMTP driver supports reporters only. It is used to send email
7when items report.
8
9Connection 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
32Reporter Configuration
33----------------------
34
35A simple email reporter is also available.
36
37A :ref:`connection<connections>` that uses the smtp driver must be supplied to the
38reporter. The connection also may specify a default *To* or *From*
39address.
40
41Each pipeline can overwrite the ``subject`` or the ``to`` or ``from`` address by
42providing 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