Is it possible to include an image in email message? Not as an attachment but as part of the message. I'd like to include company logo with a shipment email. I've set the HTML flag and I've tried using HTML img tags to include the image, but it does not show.
Thanks
Images in Email Message
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 19
- Joined: Tue Oct 03, 2017 3:33 pm
- Location: USA
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Re: Images in Email Message
Yes it is possible - there are no limitations concerning the HTML that can be put into an email resource. But, having said that, the various email clients can be very picky and there are lots of problems in this area. You might google a specific email client you are having problems with.
0 x
-
- Ebase User
- Posts: 67
- Joined: Wed Aug 15, 2012 1:22 pm
Re: Images in Email Message
We include images with our emails using HTML and <img> tags. I've not yet found a way to embed the image in the email but have to reference the image on a public server as below.Is it possible to include an image in email message? Not as an attachment but as part of the message. I'd like to include company logo with a shipment email. I've set the HTML flag and I've tried using HTML img tags to include the image, but it does not show.
Thanks
Code: Select all
<img src="https://mydomain.com/ufs/images/My_Logo.png" alt="My Logo" title="My Logo">
0 x
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
Re: Images in Email Message
There is another way that you can embed images directly into an HTML email message that doesn't require you to host the image itself anywhere.
This assumes that you will always use the same image in the email template.
What you need to do is
1. Encode the image as base64. I used this site to do so: https://www.base64-image.de/ It will give you a long base64 encoded string that represents the image.
2. Add the img tag and use the data string as the source by doing <img src="BASE64 STRING GOES HERE">
Here's a proof of concept working example that I made that shows the result. http://jsfiddle.net/j0otxzk9/1/
This assumes that you will always use the same image in the email template.
What you need to do is
1. Encode the image as base64. I used this site to do so: https://www.base64-image.de/ It will give you a long base64 encoded string that represents the image.
2. Add the img tag and use the data string as the source by doing <img src="BASE64 STRING GOES HERE">
Here's a proof of concept working example that I made that shows the result. http://jsfiddle.net/j0otxzk9/1/
1 x
-
- Ebase User
- Posts: 67
- Joined: Wed Aug 15, 2012 1:22 pm
Re: Images in Email Message
Nice Segi... I will give this a goThere is another way that you can embed images directly into an HTML email message that doesn't require you to host the image itself anywhere.
This assumes that you will always use the same image in the email template.
What you need to do is
1. Encode the image as base64. I used this site to do so: https://www.base64-image.de/ It will give you a long base64 encoded string that represents the image.
2. Add the img tag and use the data string as the source by doing <img src="BASE64 STRING GOES HERE">
Here's a proof of concept working example that I made that shows the result. http://jsfiddle.net/j0otxzk9/1/
1 x
Who is online
Users browsing this forum: No registered users and 59 guests