Email Step Templates

Hi, I’ve created a Step Templates using “Send an Email”. The Step Template has a Body Parameter that is passed into the Body of the email. When the Email Step Template is used, the email is showing #{Body} in the body. Am I doing something wrong?
Regards
B.

Hi B,

Thanks for getting in touch! I tried to replicate this on my VM with no luck. By default there should be no #{Body} parameter set for the default “Send an Email” step template.
Would you be able to attach some screenshots for me? This will greatly help me in identifying what could be going on here, and help you resolve your issue.

I will need to see a screenshot of the process page where your “Send an Email” is.
I will also need a screenshot of the contents of the “Send an Email” step.

On top of this, could you please attach a full deployment log for a deployment where this is happening? I have attached instructions on how you can do this:
https://octopus.com/docs/how-to/get-the-raw-output-from-a-task

Also, if you have not seen it yet, below is our documentation on Email notification.
https://octopus.com/docs/deploying-applications/email-notifications

Looking forward to hearing from you and getting to the bottom of this one. :slight_smile:

Best regards,
Daniel

I don’t think you understood what I mean by I have created an email step template. In Library>Step templetes I have added a Customer Step Template based on the “Send an Email” step template. With in that setup I created a Parameter call Body. See attachment on my setup.

Doc5.docx (755 KB)

Hi,

Thanks for getting back! The screenshots helped me attempt to replicate this, however, I was unable to. After copying your custom step template exactly and doing a test email, I received my test email without the #{Body} variable still there.

Would you please be able to let me know what version of Octopus you are currently using?

Also, as i noted in my previous response, I will need to see a deployment log to see exactly what is happening, I will also need you to enable the output variables with the attached task log.
You will need to add the following variables to your project and create a release, then test the email template again.
OctopusPrintVariables = True
OctopusPrintEvaluatedVariables = True

Please see the following documentation:
https://octopus.com/docs/how-to/debug-problems-with-octopus-variables

Looking forward to hearing from you. :slight_smile:

Best regards,
Daniel

I’ve upgraded to version 3.12.6 and it looks like the issue doesn’t occur anymore.
Thanks.