{"id":19243484,"url":"https://github.com/bootique/bootique-simplejavamail","last_synced_at":"2025-04-11T06:34:38.614Z","repository":{"id":49318252,"uuid":"260855262","full_name":"bootique/bootique-simplejavamail","owner":"bootique","description":"Provides Simple Java Mail integration with Bootique","archived":false,"fork":false,"pushed_at":"2025-03-23T13:40:55.000Z","size":107,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-23T14:30:23.436Z","etag":null,"topics":["bootique","javamail"],"latest_commit_sha":null,"homepage":"https://bootique.io","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bootique.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-03T08:00:28.000Z","updated_at":"2025-03-23T13:40:58.000Z","dependencies_parsed_at":"2023-12-12T21:25:24.788Z","dependency_job_id":"a4beb78e-b198-44f3-9e8e-3fd87f201804","html_url":"https://github.com/bootique/bootique-simplejavamail","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootique%2Fbootique-simplejavamail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootique%2Fbootique-simplejavamail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootique%2Fbootique-simplejavamail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bootique%2Fbootique-simplejavamail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bootique","download_url":"https://codeload.github.com/bootique/bootique-simplejavamail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248357748,"owners_count":21090400,"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":["bootique","javamail"],"created_at":"2024-11-09T17:18:11.455Z","updated_at":"2025-04-11T06:34:38.578Z","avatar_url":"https://github.com/bootique.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n  Licensed to ObjectStyle LLC under one\n  or more contributor license agreements.  See the NOTICE file\n  distributed with this work for additional information\n  regarding copyright ownership.  The ObjectStyle LLC licenses\n  this file to you under the Apache License, Version 2.0 (the\n  \"License\"); you may not use this file except in compliance\n  with the License.  You may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing,\n  software distributed under the License is distributed on an\n  \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n  KIND, either express or implied.  See the License for the\n  specific language governing permissions and limitations\n  under the License.\n  --\u003e\n\n[![build test deploy](https://github.com/bootique/bootique-simplejavamail/actions/workflows/maven.yml/badge.svg)](https://github.com/bootique/bootique-simplejavamail/actions/workflows/maven.yml)\n[![Maven Central](https://img.shields.io/maven-central/v/io.bootique.simplejavamail/bootique-simplejavamail.svg?colorB=brightgreen)](https://search.maven.org/artifact/io.bootique.simplejavamail/bootique-simplejavamail/)\n\n# bootique-simplejavamail\n\nProvides [Simple Java Mail](http://www.simplejavamail.org/) integration with [Bootique](https://bootique.io).\n\n## Usage\n\nInclude ```bootique-bom```:\n```xml\n\u003cdependencyManagement\u003e\n    \u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eio.bootique.bom\u003c/groupId\u003e\n            \u003cartifactId\u003ebootique-bom\u003c/artifactId\u003e\n            \u003cversion\u003e3.0-M6\u003c/version\u003e\n            \u003ctype\u003epom\u003c/type\u003e\n            \u003cscope\u003eimport\u003c/scope\u003e\n        \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n\u003c/dependencyManagement\u003e\n```\nImport Simple Java Mail integration:\n```xml\n\u003cdependency\u003e\n\t\u003cgroupId\u003eio.bootique.simplejavamail\u003c/groupId\u003e\n\t\u003cartifactId\u003ebootique-simplejavamail\u003c/artifactId\u003e\n\u003c/dependency\u003e\n```\n\nConfigure the app:\n```yaml\nsimplejavamail:\n\n  # Mail delivery is disabled by default to prevent inadvertent spamming when the app is in development. This property\n  # needs to be flipped to \"false\" if you want mail to be actually sent to someone.\n  disabled: false\n\n  # Configure named mailers. If \"mailers\" section is absent, the default mailer is created pointing to \"localhost:25\"\n  mailers:\n    main: # arbitrary name of the mailer\n      smtpServer: example.org\n      smtpPort: 3025\n      transportStrategy: SMTPS\n```\n\nSend mail:\n```java\n@Inject\nMailers mailers;\n\npublic void sendMail() {\n    Email email = EmailBuilder.startingBlank()\n        .from(\"me@example.org\")\n        .to(\"you@example.org\")\n        .withSubject(\"Hi!\")\n        .withPlainText(\"Hello world..\")\n        .buildEmail();\n\n    // if only one mailer is configured in YAML, it is assumed to be the default mailer\n    mailers.getDefaultMailer().sendMail(email, false);\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootique%2Fbootique-simplejavamail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbootique%2Fbootique-simplejavamail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbootique%2Fbootique-simplejavamail/lists"}