Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

376
Views
How to include image in email template using pug and img tag?

Whenever the email is sent to the user, the image isn't loaded and the alt text appears. This is the img tag that appears in the inspector whenever i open the email in the browser.

<img src="https://ci6.googleusercontent.com/proxy/Pm5tpNLIinvz0p0dF6dbHpM750__JhW0ZV1huQqVFnM-34fg8W7Gc67CBT0WUZWWBQ-gbCw=s0-d-e1-ft#http://static/images/DJiotitle.png" alt="DataJoint Databasee Setup" width="450" style="display:block" class="CToWUd" jslog="138226; u014N:xr6bB; 53:W2ZhbHNlXQ..">

Here is my file directory

Here is the line of code within the codebase that contains the img tag

img(src='static/images/DJiotitle.png', alt='DataJoint Databasee Setup', width='450', style='display: block;')

I'm thinking that this has to do with sending the email and having the browser find the image whenever it arrives. I've tried researching img tag issues whenever sending emails using templates with pug and i haven't found anything that could help me with this. I've also tried using different paths such as /static, static/, but no such luck.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I found that I need to use the url that is publicly available within the source.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!