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
I am using Sun Solaris ver. 5.10 and trying to send an HTML table in email body using mail command in C shell script.
I tried following commands:-
#1
mail -m "MIME-Version: 1.0;Content-type:text/html;charset=UTF-8" receiver@mail.com < file.html #2
mail -m "Content-type: text/html;" -s "This... (4 Replies)
Discussion started by: jnrohit2k
4 Replies
3. Shell Programming and Scripting
I am attempting to write a script where I can pass in parameters ( to , from, the location of a pdf attachment ) and send an email that has HTML for the body content and a PDF as an attachment.
I have failed to achieve this with sendmail and mutt. I recently found this.
If there are any... (2 Replies)
Discussion started by: jvsrvcs
2 Replies
4. Shell Programming and Scripting
Hi All,
I am trying to send the contents of a file as email body. I am using html email and sendmail option of unix. I am using the below piece of code for the same :
#!/usr/bin/ksh
export MAILTO="email@domain.com"
export SUBJECT="Report"
export BODY="file_directory_path/test_file.txt"... (1 Reply)
Discussion started by: rockygsd
1 Replies
5. Shell Programming and Scripting
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)
Discussion started by: Ariean
9 Replies
6. 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
7. Shell Programming and Scripting
Greeting all,
Not sure anyone tested to send out email with HTML page as attachment from Shell Script ?
I know if I use uuencode file.html approach, the mail receive in attachment is empty.
So I guess uuencode cannot be use for the html code. Appreciate if anyone can share the code to... (0 Replies)
Discussion started by: ckwan
0 Replies
8. 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
9. UNIX for Advanced & Expert Users
hi..
Could somebody help me how to sent an attachment using sendmail command and the content is HTML format ?.
Below is my code to sent the email as HTML but i do not know how to sent the attachment, please help me
To: "BAHARIN HASAN"<baharin.hasan@gmail.com>
from: "DATAONE SDN... (4 Replies)
Discussion started by: bh_hensem
4 Replies
10. Shell Programming and Scripting
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)
Discussion started by: Ikon
4 Replies