10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
echo "$1" > test.txt
awk 'BEGIN{
FS="|"
print "MIME-Version: 1.0"
print "Content-Type: text/html"
print "Content-Disposition: inline"
print "<HTML>""<TABLE border="1"><TH>Heading1</TH><TH>Heading2</TH><TH>Heading3</TH>"
}
{
printf "<TR>"
for(i=1;i<=NF;i++)
printf "<TD>%s</TD>", $i... (2 Replies)
Discussion started by: ATWC
2 Replies
2. Shell Programming and Scripting
Hi Everyone,
I am facing problems in sending html mail with attachemnt.
I will able to send mail with attachment (plain text ) using mailx -s and uuencode command and
also html mail without attachment using sendmail option.
However I am not able to send html mail along with attachment.Either... (2 Replies)
Discussion started by: karthik adiga
2 Replies
3. Shell Programming and Scripting
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)
Discussion started by: cognito
2 Replies
4. Shell Programming and Scripting
Hello,
I need to send below text (in a file ABC)as html text in mail body and the same as csv attachment
1,2,3
4,5,6
7,8,9
but to send as html text in mailbody we use
echo "Subject: Report " | cat - ABC | /usr/lib/sendmail -t a@xyz.com
and to send as an attachment in csv format we... (9 Replies)
Discussion started by: skhichi
9 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: sreenathkg
0 Replies
6. Shell Programming and Scripting
This is my first time writing a script and Im having some trouble,
Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage
I tried grep
Obviosly that hasnt worked,
Any... (8 Replies)
Discussion started by: jay02
8 Replies
7. Shell Programming and Scripting
Hi,
I am trying to send html email using mailx like follow on sh shell (Bourne) on HP-UX:
mailx -s "Test HTML output in outlook
MIME-Version: 1.0
Content-Type: text/html" receiver@host.com < file.txt
Content of file.txt are as follows:
<html>
<h2>An important link to look at!</h2>... (3 Replies)
Discussion started by: manubatham20
3 Replies
8. Shell Programming and Scripting
Hi
I am new to unix and scripting.I am trying to send a html file as an attachment.
SUBJECT="Type of Exceptions in Application"
TO=Sushovan.Samals@gmail.com
SPOOLFILE=/data/reg/tlogs/Monitor.html
#echo "Send the E-mail message..."
uuencode $SPOOLFILE $SPOOLFILE | mailx -s "$SUBJECT" $TO... (2 Replies)
Discussion started by: sushovan
2 Replies
9. UNIX for Dummies Questions & Answers
hi,
I am new to unix.
I need send html content as a mail from my sun-solaris2.6 work station. When I tried that the recipient gets it as html code with all the tags.
any solutions?
thanx in advance (2 Replies)
Discussion started by: gmchoudary
2 Replies
10. Shell Programming and Scripting
I have automated some checks - and I want to send a email when there is an issue.
This is fine and I can send the email.
However - I want to generate the email in html format so I can highlight any issues to a reader..
ie. If there is a disk space issue - then the email will highlight the... (2 Replies)
Discussion started by: frustrated1
2 Replies