What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

Can't get image to show in email

farmerDan

New member
Joined
Jul 16, 2024
Messages
1
Reaction score
0
HTML Coins
0
Hi, I am trying to send a email created by curl, json, and html that will contain a gif logo. I was able to successfully send images (gif, png, jpg) as long as I used "C:\\\filename" from a Windows computer to Outlook. If I try to exec the same bash script and send to my gmail acct, the pics do not appear, just a little image box that does not expand as far as i can tell.
I am able to attach a gif to an email, and send it to my gmail acct, and that works fine.
Just not sure what I am doing wrong in the shell script..
Part of my test script:
"content": [{"type": "text/html", "value": "
<!DOCTYPE html>
<style>{font-family: Verdana,sans-serif !important;}
</style>
<body>
<p>Hi there,</b>
<p>Sincerely,
<br>Dan
<p>
<img src='HT2.gif' alt='mygif' style='display: block'>
<p>
<img src='file:///home/dan/HT2.gif' alt='dangif' width='500' height='300'>
</body>
</html>"}]}
EOF

Any help would be greatly appreciated. I don't know how many hrs I have spent trying to get this to work..
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back