It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Image in post function custom email

Arianna Fabbri Sep 21, 2015

Hi,

adding a custom script post function - Send custom email - we tried to add a logo image inside the email's text.

From the post function preview the image is correctly shown.

When the email is sent the recipients receive it with the image not correctly shown

 

The code used to include the image is:

<img src="/images/loghi/Logo.jpg"/>

 

Any idea? Have I to use a complete path in order to load correctly the image?

Thank you in advance

Regards

Arianna

 

1 answer

1 accepted

1 vote
Answer accepted
JamieA Sep 21, 2015

You have to include the base url, eg

<img src="${baseUrl}/images/loghi/Logo.jpg"/>

 

 
Arianna Fabbri Oct 08, 2015

No success.. :( The image is still shown in Preview but not in the email content..

JamieA Oct 08, 2015

look at the html source of the email... does it look right?

Arianna Fabbri Oct 08, 2015

Solved, thank you very much! It was a blank space in the image's name that was not correctly understood. I've changed both the image's name and the reference in the custom script and now it works correctly. Thank you

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Marketplace Apps & Integrations

Demo Den Ep. 4: Continuous Integration with CircleCI & Jira Software

Get ready! Demo Den Episode 4 is coming your way on Tuesday, May 28, 2018 with a Continuous Integration and Delivery special demo. CircleCI Director of Solutions Engineering, Eddie Webb will show us ...

69 views 0 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you