![]() ![]() Mysql -u USERNAME -pPASSWORD -P PORTNUMBER -h HOSTNAME DBNAME -table -e "select columns from tablename where member in ('value1','value2')" Create whatever information is needed into a script (testSql.sh) echo "" Unix version: Red Hat Enterprise Linux Server release 6.6 (Santiago)įirst. ![]() Now the email i receive is in the HTML format. I searched across many posts, and i found below property to convert the body into text/html. cat <<'EOF' - test.html | /usr/sbin/sendmail -tįor me i needed to specify a variable such as SMTP server, so the mail command worked in the below fashion. (I think they don't all support Bcc.) On most systems, sendmail isn't in the usual $PATH, it's in /usr/sbin or /usr/lib. There are several versions of sendmail out there, but they all support sendmail -t to send a mail in the simplest fashion, reading the list of recipients from the mail. mutt -e 'set content_type=text/html' -s 'hello' composing a message, mail and mailx treats lines beginning with ~ as commands.For example, both Ubuntu and Debian have several alternatives for mail and mailx. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |