{"id":23270541,"url":"https://github.com/matgou/txttomail","last_synced_at":"2026-04-16T11:03:55.682Z","repository":{"id":52531756,"uuid":"90402128","full_name":"matgou/txttomail","owner":"matgou","description":"A customizable tool to send HTML mail from bash command line, with attachments, images, arrays, inside.","archived":false,"fork":false,"pushed_at":"2021-04-26T19:49:02.000Z","size":165,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T00:41:25.452Z","etag":null,"topics":["cli","html","java","mailer","shell","smtp"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matgou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-05T17:46:26.000Z","updated_at":"2023-12-11T07:51:38.000Z","dependencies_parsed_at":"2022-08-30T16:50:20.147Z","dependency_job_id":null,"html_url":"https://github.com/matgou/txttomail","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/matgou/txttomail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matgou%2Ftxttomail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matgou%2Ftxttomail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matgou%2Ftxttomail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matgou%2Ftxttomail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matgou","download_url":"https://codeload.github.com/matgou/txttomail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matgou%2Ftxttomail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31882886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","html","java","mailer","shell","smtp"],"created_at":"2024-12-19T18:52:35.145Z","updated_at":"2026-04-16T11:03:55.652Z","avatar_url":"https://github.com/matgou.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TxtToMail\n\nA customizable java tools to send HTML mail from command line. With attachments, images, arrays, inside. \n\n[![Build Status](https://travis-ci.org/matgou/txttomail.svg?branch=master)](https://travis-ci.org/matgou/txttomail)\n[![codecov.io](https://codecov.io/github/matgou/txttomail/coverage.svg?branch=master)](https://codecov.io/github/matgou/txttomail?branch=master)\n\n## Usage via command line :\n\n### All in one command :\n\nYou can send email via one command :\n```bash\njava -jar TxtToMail.jar --send -TO \"matgou@kapable.info\" -SUBJECT \"this is a test\" -TEXT \"Hy, \u003cbr/\u003e This is a test mail!\"\n```\n\n### Step by step command :\n\nOr you can run multiple command (for shell script usage)\n\n* First step is to produce a file \"mail.template\" containing mail information\n```bash\njava -jar TxtToMail.jar -i mail.template -FROM matgou@kapable.info\njava -jar TxtToMail.jar -i mail.template -TO test@kapable.info\njava -jar TxtToMail.jar -i mail.template -SUBJECT \"This is a test\"\njava -jar TxtToMail.jar -i mail.template -TEXT \"Hy, \u003cbr/\u003e\"\njava -jar TxtToMail.jar -i mail.template -TEXT \"This is a test mail !\"\njava -jar TxtToMail.jar -i mail.template -ARRAY \"src/main/resources/tab1.csv\"\njava -jar TxtToMail.jar -i mail.template -PJ \"src/main/resources/tab1.csv\"\n```\n\n* Second step to send mail, type this command to keep copy of mail in \"output.eml\" file\n```bash\njava -jar TxtToMail.jar -i mail.template -o output.eml -send\n```\n\n## Configuration\n\nYou can specify some extra option like smtp-host by creating a .properties file and use it with \"-c\" option :\n* A config.properties file :\n```\nmail.smtp.host=smtp.myisp.com\nlogfile=mail.log\n```\n* Send the mail previously prepared :\n```bash\njava -jar TxtToMail.jar -c config.properties -i mail.template -o output.eml -send\n```\n\n## Customizing\n\nTODO\n\n## Building from source\n\nTo build from source use mvn :\n```bash\nmvn clean test package\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatgou%2Ftxttomail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatgou%2Ftxttomail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatgou%2Ftxttomail/lists"}