Insert an image in HTML mail sent from Shell script
Hi Shell Experts
I am trying to insert an image into HTML email through shell script send mail, I have the email text file which included body and the images included in it in html format.
Through my Shell script, I am calling the text file and send it through email so it it sends the email with image as I required..
The mail body looks perfectly file but images are not showing in the email..
See my code below
Can you please suggest where am i doing wrong here ?
my mail.txt files is too big to paste here, but the image and mail body related information looks like below in html format
Yes Pravin, Image is appearing in the email with your code.. its just that, I will have to explicitly right click on the email and say "download Image"
I copied the image png files in Linux folder and tried to give the path of Linux server, but its not working as specified in previous response
Thanks mate
Anji
---------- Post updated at 10:36 PM ---------- Previous update was at 01:19 AM ----------
Hi Pravin and Experts
Can some one help me out here please
I copied the image jpg files in my Linux home folder and tried to give the path of Linux server, but its not working, Image not showing in the email...
I tried multiple options (See below), but no luck
I might be missing something but couldn't find what it is...
Code:
<img width=640 height=147 src="/home/u35731/dev/1.jpg">
and
<img width=640 height=147 src="1.jpg">
Hello every one.
I use mutt :
"mpack -s "Test" /home/pi/Pictures/2018-10-05_23_10_40.jpg my_email_addres "
to send me a particular picture with the name of the data+jpg in a pictures folder, but this folder I use it for a timelapse proyect with more pictures , and what I need is... (2 Replies)
hi,
trying to embed an image to the html file to send out as an email.
img src="data:image/jpeg;base64,$(base64 /home/test/abc.jpg
but getting error as file not found after it aplies base64 on the file. (8 Replies)
Hi All,
Sorry for long topic here.
So the drill goes like that, I need a script which gathers different values from different files/locations.
A_CT=`cat a.dat | awk -F'|' '{print $1}' >> report.txt`
B_CT=`cat b.dat | awk -F'|' '{print $3}' >> report.txt`
C_CT=`cat c.dat | awk -F'|'... (4 Replies)
Hello,
Currently i have a script which will disply the results in plain text format.
I want to format the result in more readable format like Making bold headings and format with colors etc. Something like html and send that content as email.
Please help me how i can do that.
I am using... (10 Replies)
hi,
I need to create a bash shell script which picks up data from a text file and in the output file puts it into an html made table. I have to use sed and awk utilties to do this
the input text file will contain data in the format:
job name para1 para2 para3 para4 para4
1 ... (1 Reply)
Hi,
Is it possible to send mail from my HP-Ux system with images, rich text? I would like to program in such a way that I have my company's logo(.jpg) image attached in the mail geeting triggered. I would like to send a rich text/HTML email instead of plain text mail to the recipients. Is it... (2 Replies)
I am trying to use shellinabox as a terminal emulator. Everything is working except there seems to be no way to simulate an F14 button press in shellinabox. I am already embedding shellinabox in an html page so Im am wondering if there is a way to make an html/js button that will pass F14 to the... (0 Replies)
I m trying to throw back html page when a file is found.While throwing back html page, the background image is not coming. I am using Apache server.Please suggest how to resolve...
#!/bin/ksh
echo -e "Content-type: text/html\n\n"
echo "<html><head></head><body background=\"/asc/ppp.jpg\">"... (10 Replies)
Hi:
I have writed a script that read a HTML file and convert this in a multipart mime fail to send in a mail.
But the result isn't interpreted lika a mime file!!
Somebody can see the error???
---------------------------
#! /bin/bash
SB=$1
IF=$2
OF=$3
rm -f $OF.b64
... (7 Replies)
I apoligize for the cross-post but I'm not getting much in the way of help in the dummies forum:
I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements:
1. command line switch to specify file name containing message body in HTML format
2. command... (3 Replies)