{"id":23419706,"url":"https://github.com/pdroll/mailgun-send-cli","last_synced_at":"2025-06-21T01:43:26.333Z","repository":{"id":12883712,"uuid":"73042738","full_name":"pdroll/mailgun-send-cli","owner":"pdroll","description":"Quickly send HTML emails from the command line using the Mailgun  API.","archived":false,"fork":false,"pushed_at":"2023-01-07T22:51:23.000Z","size":3155,"stargazers_count":9,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T19:43:59.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/pdroll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-07T04:39:30.000Z","updated_at":"2025-03-04T14:24:07.000Z","dependencies_parsed_at":"2023-01-11T18:26:22.271Z","dependency_job_id":null,"html_url":"https://github.com/pdroll/mailgun-send-cli","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdroll%2Fmailgun-send-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdroll%2Fmailgun-send-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdroll%2Fmailgun-send-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdroll%2Fmailgun-send-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdroll","download_url":"https://codeload.github.com/pdroll/mailgun-send-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571938,"owners_count":21126522,"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":[],"created_at":"2024-12-23T01:28:03.991Z","updated_at":"2025-04-12T13:00:23.091Z","avatar_url":"https://github.com/pdroll.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mailgun-send-cli\n\nEasily send mail, even HTML emails, from the command line using the Mailgun API.\n\n## Installation\n\n```\nnpm install mailgun-send-cli -g\n```\n\nNote, this uses [mailgun.js](https://github.com/mailgun/mailgun-js) under the hood, which requires  node.js \u003e= 12.x. If you are using an older version of node, consider using an older version of this package. Version 0.2.0 requires node \u003e=8, while version 0.1.4 requires node \u003e=4.3.2.\n\n```\nnpm install mailgun-send-cli@0.2.0 -g\n```\n\n## Usage\n\n```\nmailgun-send [options]\n```\n\nYou will be prompted to enter your Mailgun [API Key](https://app.mailgun.com/app/account/security/api_keys) and [domain](https://app.mailgun.com/app/sending/domains/) on your first use. These values will be used on every subsequent call until the `--reset` flag is used to reset them.\n\n### Examples\n\nPlain text email:\n\n```\nmailgun-send -f me@example.com -t you@example.com -s 'Email sent via Mailgun from the command line' -T 'Hello there! The mailgun-send-cli tool is really cool. You should check it out!'\n```\n\nHTML email:\n\n```\nmailgun-send -f me@example.com -t you@example.com -s 'HTML Email sent via Mailgun from the command line' -H ~/path/to/html/file.html\n```\n\n### Options\n\n#### `-s, --subject \u003cvalue\u003e`\nSubject of Email. Required.\n\n#### `-t, --to \u003cvalue\u003e`\nEmail address of recipient of email. Required.\n\n#### `-f, --from \u003cvalue\u003e`\nEmail address of email sender. Required.\n\n#### `-r, --reply \u003cvalue\u003e`\nReplyTo email address. Optional.\n\n#### `-c, --cc \u003cvalue\u003e`\nEmail address to CC. Optional.\n\n#### `-b, --bcc \u003cvalue\u003e`\nEmail address to BCC. Optional.\n\n#### `-T, --text \u003cvalue\u003e`\nText to send as body of email. Must specify this or `--htmlpath`.\n\n#### `-H, --htmlpath \u003cvalue\u003e`\nPath to HTML file to send as email. Must specify this or `--text`.\n\n#### `-R, --reset`\nReset Mailgun API key and Domain. You will be prompted to enter these again.\n\n#### `-h, --help`\nOutput usage information\n\n#### `-V, --version`\nOutput the version number\n\n#### `-v, --verbose`\nOutput more detailed information, such as message id\n\n\n## Troubleshooting\n\nIf it says your email was successfully sent, but you don't see the email in your inbox, check the [logs](https://mailgun.com/app/logs) of your mailgun account for more information.\n\nBe sure to use a [verified domain](https://documentation.mailgun.com/quickstart-sending.html#verify-your-domain) to remove the \"sent via Mailgun.org\" message from your emails and increase your monthly free send limit from 300 to 10,000.\n\nSee [Mailgun's FAQ's](https://documentation.mailgun.com/faqs.html) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdroll%2Fmailgun-send-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdroll%2Fmailgun-send-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdroll%2Fmailgun-send-cli/lists"}