package main const ( // DefaultPort is the default SMTP port to use DefaultPort = 587 // DefaultOnlyRecipients controls wether to exclude the commit author by default DefaultOnlyRecipients = false // DefaultSkipVerify controls wether to skip SSL verification for the SMTP server DefaultSkipVerify = false ) // DefaultSubject is the default subject template to use for the email const DefaultSubject = ` [{{ build.status }}] {{ repo.owner }}/{{ repo.name }} ({{ build.branch }} - {{ truncate build.commit 8 }}) ` // DefaultTemplate is the default body template to use for the email const DefaultTemplate = `
{{#success build.status}} {{else}} {{/success}}
Successful build #{{ build.number }} Failed build #{{ build.number }}
Repo: {{ repo.owner }}/{{ repo.name }}
Author: {{ build.author.name }} ({{ build.author.email }})
Branch: {{ build.branch }}
Commit: {{ truncate build.commit 8 }}
Started at: {{ datetime build.started "Mon Jan 2 15:04:05 MST 2006" "Local" }}

{{ build.message }}
`