Send HTML formatted mail from Unix using Sendmail
I have used this quite a bit and it works great for me. We're on an HP box running Unix 11.11. You can embed javascripts, css, etc. Pretty cool stuff.
(
echo "From: you@your_company.com"
echo "To: you@your_company.com"
echo "MIME-Version: 1.0"
echo "Content-Type: multipart/mixed;"
echo ' boundary="PAA08673.1018277622/server.domain.com"'
echo "Subject: Test Message"
echo ""
echo "This is a MIME-encapsulated message"
echo ""
echo "--PAA08673.1018277622/server.domain.com"
echo "Content-Type: text/html"
echo ""
echo "<HTML>
<BODY bgcolor=gray>
<blockquote><font color=red>Test</font> <font color=white>Message</font> <font color=blue>Body</font></blockquote>
</body>
</html>"
echo "--PAA08673.1018277622/server.domain.com"
) | sendmail -t
echo "From: you@your_company.com"
echo "To: you@your_company.com"
echo "MIME-Version: 1.0"
echo "Content-Type: multipart/mixed;"
echo ' boundary="PAA08673.1018277622/server.domain.com"'
echo "Subject: Test Message"
echo ""
echo "This is a MIME-encapsulated message"
echo ""
echo "--PAA08673.1018277622/server.domain.com"
echo "Content-Type: text/html"
echo ""
echo "<HTML>
<BODY bgcolor=gray>
<blockquote><font color=red>Test</font> <font color=white>Message</font> <font color=blue>Body</font></blockquote>
</body>
</html>"
echo "--PAA08673.1018277622/server.domain.com"
) | sendmail -t
Also see ...
UNIX: Shortcut to create a backup copy of a file
H3Copy and rename a file in a shorter step than the normal cp file file.bak/H3PIf you have a file named foobar and you want to make a backup copy named foobar.bak you could do br / br /div class="code"cp foobar foobar.bakP br /but what if the file has a long name, and you have
H3Copy and rename a file in a shorter step than the normal cp file file.bak/H3PIf you have a file named foobar and you want to make a backup copy named foobar.bak you could do br / br /div class="code"cp foobar foobar.bakP br /but what if the file has a long name, and you have
Place and manage tasks or jobs in the background from the comand line
H3Managing tasks or jobs from the command line or terminal is easy in unix flavors once you know the simple commands./H3PUnix, like other modern operating systems, can easily run multiple tasks at once. If you running from the command line or terminal, it is not obvious how to do this or mana
H3Managing tasks or jobs from the command line or terminal is easy in unix flavors once you know the simple commands./H3PUnix, like other modern operating systems, can easily run multiple tasks at once. If you running from the command line or terminal, it is not obvious how to do this or mana
Unix/Linux: Easily find or search files or directories
H3Newbie unix guys like me need to know these kinda things. This explains how to find a file or directory from the command line. /H3PYeah, it's the unix version of dos's span style="font weight: bold"dir/s/span br /I'm no unix guru, but maybe this will help somebody. br / br /W
H3Newbie unix guys like me need to know these kinda things. This explains how to find a file or directory from the command line. /H3PYeah, it's the unix version of dos's span style="font weight: bold"dir/s/span br /I'm no unix guru, but maybe this will help somebody. br / br /W
Create a symbolic link in UNIX
H3A symbolic link is a pointer to another file or directory. It can be used just like the original file or directory. A symbolic link appears in a long listing (ls l) with a reference to the original file/directory. A symbolic link, as opposed to a hard link, is required when linking from one
H3A symbolic link is a pointer to another file or directory. It can be used just like the original file or directory. A symbolic link appears in a long listing (ls l) with a reference to the original file/directory. A symbolic link, as opposed to a hard link, is required when linking from one
