Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Email notify pipe: BODY_HTML: 'email_template.html'

phillsym January 13, 2020

Hi,

 

Do you have an example or template for the email notify pipe variable: 

BODY_HTML: 'email_template.html'

 

Thanks!

 

Phill 

1 answer

1 accepted

1 vote
Answer accepted
Alexander Zhukov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 14, 2020

Hi @phillsym 

You can use any html file as a BODY_HTML, for example, this is a simple html message:

<html>
<head></head>
<body>
<h1>Hello</h1>
<p>Email sent from <a href='https://bitbucket.org'>Powered by Bitbucket Pipes</a></p>
</body>
</html>
philltran January 14, 2020


@Alexander Zhukov Thanks for the quick response. I was thinking it was a template with spots for variables. 

I will try use ‘sed’ to populate a template HTML file during the pipeline run. 

Like Joe likes this
Alexander Zhukov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 14, 2020

You can also use the envsubst utility https://unix.stackexchange.com/a/294400/230811

phillsym January 14, 2020

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events