A demostration that sending mails with multipart/alternative choice between text and html is not that difficult.
Go to file
2022-05-18 03:43:33 +02:00
bin Adding a multipart/alternative example. 2022-05-18 03:39:48 +02:00
lib/Mail Adding a multipart/alternative example. 2022-05-18 03:39:48 +02:00
Build.PL Adding a multipart/alternative example. 2022-05-18 03:39:48 +02:00
LICENSE Initial commit 2022-05-18 03:38:15 +02:00
README.md Adding shell command example. 2022-05-18 03:43:33 +02:00

MailExample

A demostration that sending mails with multipart/alternative choice between text and html is not that difficult.

Example usage:

cpan .

cat <<'EOF' > mail_text_file.txt
hola mundo
EOF

cat <<'EOF' > mail_html_file.txt
<h1>hola mundo<h1>
EOF

mail_example --user <sasl_user> --port 465 --host <smtp_host> --password <sasl_password> --subject hola --to <destination address> --text_body_file mail_text_file.txt --html_body_file mail_html_file.txt