Empty mail body when context is passed through "Email Notify" pipe
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
This article explains why the HTML body context may appear empty when a report is passed through the email-notify pipe on Bitbucket pipelines.
Problem Statement
When using the email-notify pipe, email targets are receiving emails with an empty body.
Diagnosis
You will need to verify the YAML definition of the pipe and confirm if the parameter “BODY_HTML” is configured properly - further details regarding the configuration of the pipe may be found in its documentation page.
Solution
1
2
3
4
5
6
7
8
9
10
11
12
13
- pipe: atlassian/email-notify:0.9.0
variables:
USERNAME: '<string>'
PASSWORD: '<string>'
FROM: '<string>'
TO: '<string>'
HOST: '<string>'
BODY_HTML: '<string>'
# PORT: '<string>' # Optional.
# TLS: '<boolean>' # Optional.
# SUBJECT: '<string>' # Optional.
# BODY_PLAIN: '<string>' # Optional.
For the parameter "BODY_HTML" make sure you are passing the right path. If the file path is incorrect the mail body will be empty.
If the above instructions do not assist in resolving the issue, please raise a support ticket or raise a community support ticket for further assistance with this.
Was this helpful?