{"id":15287060,"url":"https://github.com/httprunner/mail-cli","last_synced_at":"2025-04-13T04:17:17.342Z","repository":{"id":57439248,"uuid":"97481713","full_name":"httprunner/mail-cli","owner":"httprunner","description":"Send email in command shell, especially used in Jenkins.","archived":false,"fork":false,"pushed_at":"2018-08-15T15:50:34.000Z","size":21,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-13T04:16:50.658Z","etag":null,"topics":["jenkins-mail","mailer","mailgun"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/httprunner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-17T13:50:28.000Z","updated_at":"2020-11-10T10:17:36.000Z","dependencies_parsed_at":"2022-09-26T17:20:25.427Z","dependency_job_id":null,"html_url":"https://github.com/httprunner/mail-cli","commit_stats":null,"previous_names":["debugtalk/mail-cli"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprunner%2Fmail-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprunner%2Fmail-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprunner%2Fmail-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httprunner%2Fmail-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/httprunner","download_url":"https://codeload.github.com/httprunner/mail-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661713,"owners_count":21141451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jenkins-mail","mailer","mailgun"],"created_at":"2024-09-30T15:24:04.973Z","updated_at":"2025-04-13T04:17:17.317Z","avatar_url":"https://github.com/httprunner.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mail CLI\n\nCLI for email sending, based on mailgun service and SMTP mailer.\n\n## Install\n\n```bash\n$ pip install -U mailcli\n```\n\n## Usage\n\n```text\n$ mailcli -h\nusage: mailcli [-h] [-V] [-u MAILGUN_SMTP_USERNAME]\n                  [-p MAILGUN_SMTP_PASSWORD] [--mail-sender MAIL_SENDER]\n                  [--mail-recepients [MAIL_RECEPIENTS [MAIL_RECEPIENTS ...]]]\n                  [--mail-subject MAIL_SUBJECT] [--mail-content MAIL_CONTENT]\n                  [--mail-content-path MAIL_CONTENT_PATH]\n\nMail-CLI, send mail with mailgun service.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -V, --version         show version\n  -u MAILGUN_SMTP_USERNAME, --mailgun-smtp-username MAILGUN_SMTP_USERNAME\n                        Specify mailgun smtp username.\n  -p MAILGUN_SMTP_PASSWORD, --mailgun-smtp-password MAILGUN_SMTP_PASSWORD\n                        Specify mailgun smtp password.\n  --mail-sender MAIL_SENDER\n                        Specify email sender.\n  --mail-recepients [MAIL_RECEPIENTS [MAIL_RECEPIENTS ...]]\n                        Specify email recepients.\n  --mail-subject MAIL_SUBJECT\n                        Specify email subject.\n  --mail-content MAIL_CONTENT\n                        Specify email content.\n  --mail-content-path MAIL_CONTENT_PATH\n                        Load file content as mail content.\n```\n\n## Examples\n\n### send mail with content\n\n```bash\n$ mailcli \\\n    -u \"user@mail.com\" \\\n    -p \"pwd123\" \\\n    --mail-sender \"sender@mail.com\" \\\n    --mail-recepients test1@mail.com test2@mail.com \\\n    --mail-subject subject-test \\\n    --mail-content hello-world\n```\n\n### send mail with file content\n\n```bash\n$ mailcli \\\n    -u \"user@mail.com\" \\\n    -p \"pwd123\" \\\n    --mail-sender \"sender@mail.com\" \\\n    --mail-recepients test1@mail.com test2@mail.com \\\n    --mail-subject subject-test \\\n    --mail-content-path 1534006836.html\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttprunner%2Fmail-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttprunner%2Fmail-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttprunner%2Fmail-cli/lists"}