close
Warning:
Can't synchronize with repository "(default)" (/hepforge/svn/lieart does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Nov 9, 2012, 9:15:38 AM (12 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
31 | 31 | * '''`smtp_from`''': Email address to use for ''Sender''-headers in notification emails. |
32 | 32 | * '''`smtp_from_name`''': Sender name to use for ''Sender''-headers in notification emails. |
| 33 | * '''`smtp_from_author`''': (''since 1.0'') Use the author of a change (the reporter of a new ticket, or the author of a comment) as the `From:` header value in notification e-mails (default: false). If the author hasn't set an e-mail address, `smtp_from` and `smtp_from_name` are used instead. |
33 | 34 | * '''`smtp_replyto`''': Email address to use for ''Reply-To''-headers in notification emails. |
34 | 35 | * '''`smtp_default_domain`''': (''since 0.10'') Append the specified domain to addresses that do not contain one. Fully qualified addresses are not modified. The default domain is appended to all username/login for which an email address cannot be found from the user settings. |
… |
… |
|
49 | 50 | * '''`email_sender`''': (''since 0.12'') Name of the component implementing `IEmailSender`. This component is used by the notification system to send emails. Trac currently provides the following components: |
50 | 51 | * `SmtpEmailSender`: connects to an SMTP server (default). |
51 | | * `SendmailEmailSender`: runs a `sendmail`-compatible executable. |
| 52 | * `SendmailEmailSender`: runs a `sendmail`-compatible executable. |
52 | 53 | |
53 | 54 | Either '''`smtp_from`''' or '''`smtp_replyto`''' (or both) ''must'' be set, otherwise Trac refuses to send notification mails. |
… |
… |
|
98 | 99 | === Customizing the e-mail content === |
99 | 100 | |
100 | | The notification e-mail content is generated based on `ticket_notify_email.txt` in `trac/ticket/templates`. You can add your own version of this template by adding a `ticket_notify_email.txt` to the templates directory of your environment. The default looks like this: |
| 101 | The notification e-mail content is generated based on `ticket_notify_email.txt` in `trac/templates`. You can add your own version of this template by adding a `ticket_notify_email.txt` to the templates directory of your environment. The default looks like this: |
101 | 102 | |
102 | 103 | {{{ |
… |
… |
|
170 | 171 | }}} |
171 | 172 | |
172 | | with this instead: |
| 173 | with this instead (''requires Python 2.6 or later''): |
173 | 174 | {{{ |
174 | 175 | -------------------------------------------------------------------------- |
… |
… |
|
220 | 221 | }}} |
221 | 222 | |
222 | | However, it's not as perfect as an HTML formatted e-mail would be, but presented ticket properties are at least readable... |
| 223 | **Important**: Only those ticket fields that are listed in `sel` are part of the HTML mail. If you have defined custom ticket fields which shall be part of the mail they have to be added to `sel`, example: |
| 224 | {{{ |
| 225 | sel = ['Reporter', ..., 'Keywords', 'Custom1', 'Custom2'] |
| 226 | }}} |
| 227 | |
| 228 | However, it's not as perfect as an automatically HTML-formatted e-mail would be, but presented ticket properties are at least readable by default in MS Outlook... |
223 | 229 | |
224 | 230 | |