What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Can't get image to show in email

farmerDan

New member
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..
 
Back
Top