I know how to send an email with sendmail in a shell script.
I know how to send an email with an attachment in a script.
But im trying to send an email and need to set Content-Type to text/html and insert a file as the body and not attachment.
Send email with file as attachment:
... (4 Replies)
To change the colour of the content in email sent through unix
Hi
I want to change the color of the email content sent through unix. I tried a lot and left in vain. I heard that it could be done by sending the email as HTML. But I don't how to do it. Can you all share your ideas?
... (1 Reply)
Hello,
I have a script which is sending an html file as an attachment.
#!/usr/bin/ksh
export MAILTO="user@company.com"
export CONTENT="/usr/tmp/file.html"
export SUBJECT="EmailSubject"
(
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo... (0 Replies)
Hi,
I am receiving an email to the server with a html attachment. When I check the /var/mail the attachment is showing as junk characters.
I want to move that html file to a particular location in that server.
Please help me.
Regards
Neethu (4 Replies)
Hi,
I have a .sh file, to email a report of our backups from a linux machine. It looks like this (minus a few bits):
echo "HELO $host.$domain"
sleep 1
echo "mail from: vdrreport@$domain"
sleep 1
echo "rcpt to:$mailto"
sleep 1
echo "data"
sleep 1
echo "subject: $host VDR-Report... (2 Replies)
1) Can you please provide me with a best example of how to send an HTML email via mutt or mail or send email commands using bash shell.
2) I tried below but i am not able to get the variable values in the HTML email output.
(cat <<-EOT
<html>
<head><title></title> </head>
<body>
<p>Hello,... (9 Replies)
Hi ,
I have a sql query in the unix script ,whose output is shown below.I want to convert this output to HTML table format & send email from unix with this table as email body.
p_id src_system amount
1 A 100
2 B 200
3 C ... (3 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)
I have tried below email method and i am getting every thing in single line . i have put echo to provide space, but it is not helping
my code
(
echo "From: $FROM"
echo "To: $MAILTO"
echo "CC: $CC"
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo 'Content-Type: multipart/mixed;... (6 Replies)
libcaca attribute definitions(3caca) libcaca libcaca attribute definitions(3caca)NAME
libcaca attribute definitions -
Enumerations
enum caca_color { CACA_BLACK = 0x00, CACA_BLUE = 0x01, CACA_GREEN = 0x02, CACA_CYAN = 0x03, CACA_RED = 0x04, CACA_MAGENTA = 0x05,
CACA_BROWN = 0x06, CACA_LIGHTGRAY = 0x07, CACA_DARKGRAY = 0x08, CACA_LIGHTBLUE = 0x09, CACA_LIGHTGREEN = 0x0a, CACA_LIGHTCYAN =
0x0b, CACA_LIGHTRED = 0x0c, CACA_LIGHTMAGENTA = 0x0d, CACA_YELLOW = 0x0e, CACA_WHITE = 0x0f, CACA_DEFAULT = 0x10, CACA_TRANSPARENT
= 0x20 }
enum caca_style { CACA_BOLD = 0x01, CACA_ITALICS = 0x02, CACA_UNDERLINE = 0x04, CACA_BLINK = 0x08 }
Detailed Description
Colours and styles that can be used with caca_set_attr().
Enumeration Type Documentation
enum caca_color libcaca colour keyword
Enumerator:
CACA_BLACK
The colour index for black.
CACA_BLUE
The colour index for blue.
CACA_GREEN
The colour index for green.
CACA_CYAN
The colour index for cyan.
CACA_RED
The colour index for red.
CACA_MAGENTA
The colour index for magenta.
CACA_BROWN
The colour index for brown.
CACA_LIGHTGRAY
The colour index for light gray.
CACA_DARKGRAY
The colour index for dark gray.
CACA_LIGHTBLUE
The colour index for blue.
CACA_LIGHTGREEN
The colour index for light green.
CACA_LIGHTCYAN
The colour index for light cyan.
CACA_LIGHTRED
The colour index for light red.
CACA_LIGHTMAGENTA
The colour index for light magenta.
CACA_YELLOW
The colour index for yellow.
CACA_WHITE
The colour index for white.
CACA_DEFAULT
The output driver's default colour.
CACA_TRANSPARENT
The transparent colour.
enum caca_style libcaca style keyword
Enumerator:
CACA_BOLD
The style mask for bold.
CACA_ITALICS
The style mask for italics.
CACA_UNDERLINE
The style mask for underline.
CACA_BLINK
The style mask for blink.
Author
Generated automatically by Doxygen for libcaca from the source code.
Version 0.99.beta18 Fri Apr 6 2012 libcaca attribute definitions(3caca)