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..
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..