A demostration that sending mails with multipart/alternative choice between text and html is not that difficult.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sergiotarxz aed99c4171 Adding shell command example. 9 months ago
bin Adding a multipart/alternative example. 9 months ago
lib/Mail Adding a multipart/alternative example. 9 months ago
Build.PL Adding a multipart/alternative example. 9 months ago
LICENSE Initial commit 9 months ago
README.md Adding shell command example. 9 months ago

README.md

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