From aed99c4171c4dd1bdeb8b82d4830643ca360cd3a Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Wed, 18 May 2022 03:43:33 +0200 Subject: [PATCH] Adding shell command example. --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 173467a..e237f61 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ # MailExample -A demostration that sending mails with multipart/alternative choice between text and html is not that difficult. \ No newline at end of file +A demostration that sending mails with multipart/alternative choice between text and html is not that difficult. + +Example usage: + +```shell +cpan . + +cat <<'EOF' > mail_text_file.txt +hola mundo +EOF + +cat <<'EOF' > mail_html_file.txt +

hola mundo

+EOF + +mail_example --user --port 465 --host --password --subject hola --to --text_body_file mail_text_file.txt --html_body_file mail_html_file.txt +```