Image in post function custom email

Arianna Fabbri September 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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 21, 2015

You have to include the base url, eg

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

 

 
Arianna Fabbri October 8, 2015

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

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2015

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

Arianna Fabbri October 8, 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
TAGS
AUG Leaders

Atlassian Community Events