{"id":14349954,"url":"https://github.com/jakobkmar/SimpleKotlinMail","last_synced_at":"2025-08-21T02:32:56.401Z","repository":{"id":43045137,"uuid":"327967352","full_name":"jakobkmar/SimpleKotlinMail","owner":"jakobkmar","description":"A simple, coroutine based Kotlin Email API for both client- and server-side projects","archived":true,"fork":false,"pushed_at":"2022-05-25T16:16:40.000Z","size":3319,"stargazers_count":64,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-05-21T13:44:32.323Z","etag":null,"topics":["coroutines","email","kotlin-jvm","mail","send-email","smtp","smtp-server"],"latest_commit_sha":null,"homepage":"https://jakobkmar.github.io/SimpleKotlinMail/","language":"Kotlin","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/jakobkmar.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":"2021-01-08T17:19:34.000Z","updated_at":"2024-05-15T02:56:22.000Z","dependencies_parsed_at":"2022-08-24T05:21:08.945Z","dependency_job_id":null,"html_url":"https://github.com/jakobkmar/SimpleKotlinMail","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/jakobkmar%2FSimpleKotlinMail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobkmar%2FSimpleKotlinMail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobkmar%2FSimpleKotlinMail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobkmar%2FSimpleKotlinMail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakobkmar","download_url":"https://codeload.github.com/jakobkmar/SimpleKotlinMail/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":217116684,"owners_count":16127261,"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":["coroutines","email","kotlin-jvm","mail","send-email","smtp","smtp-server"],"created_at":"2024-08-27T04:00:30.800Z","updated_at":"2024-08-27T04:01:27.336Z","avatar_url":"https://github.com/jakobkmar.png","language":"Kotlin","funding_links":[],"categories":["Recently Updated"],"sub_categories":["[Aug 27, 2024](/content/2024/08/27/README.md)"],"readme":"\u003cimg src=\"simplekotlinmail_logo.svg\" width=\"500\" alt=\"SimpleKotlinMail Logo\"\u003e\n\n_SimpleKotlinMail is a Kotlin Mail API, using coroutines and providing DSLs._\n\nThis project is **not actively being worked on anymore**, for an explanation and alternatives see https://github.com/jakobkmar/SimpleKotlinMail/issues/6#issuecomment-1082247403 .\n\n## Features\n\n- build emails\n- send emails (using an external SMTP server)\n- receive and process emails\n- TLS support\n\n## To get started, visit the **[Documentation](https://jakobkmar.github.io/SimpleKotlinMail/)**.\n\n## Examples\n\nThe purpose of the following code snippets is to provide an insight into the API. However, they are not suitable for learning the API, you should use the actual documentation for this.\n\n### Build\n\nBuild an email:\n\n```kotlin\nval email = emailBuilder {\n    from(\"no-reply@example.com\")\n    to(\"foo@bar.com\")\n\n    withSubject(\"Important question\")\n    withPlainText(\"Hey, how are you doing?\")\n}\n```\n\n### Send\n\nSend that email:\n\n```kotlin\nsuspend fun main() = email.send()\n```\n\n### Server / Receive\n\nCreate a custom SMTPServer:\n\n```kotlin\nval smtpServer = smtpServer {\n    mailListener {\n        println(it.email.plainText)\n    }\n}.start(keepAlive = true)\n```\n\n### Convert\n\n```kotlin\n// EML String -\u003e Email\nstring.toEmail()\n// MimeMessage -\u003e Email\nmimeMessage.email\n```\n\n### HTML\n\nInside the email builder, you can easily access kotlinx.html:\n```kotlin\nemailBuilder {\n    withHTML {\n        div {\n            h1 { +\"Really important question!\" }\n            p { +\"Hey, how are you doing?\" }\n        }\n    }\n}\n```\n\n### And more\n\nTo learn more about SimpleKotlinMail, visit the **[Documentation](https://jakobkmar.github.io/SimpleKotlinMail/)**.\n\n## Project information\n\nThis project uses [SimpleJavaMail](https://www.simplejavamail.org/) to deal with java MimeMessages in a more elegant\nway. On the server side, this projects depends on a fork of [SubEthaSMTP](https://github.com/davidmoten/subethasmtp).\n\nIf you use the documented functionality of SimpleKotlinMail, everything will make use\nof [kotlinx.coroutines](https://kotlinlang.org/docs/reference/coroutines-overview.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobkmar%2FSimpleKotlinMail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakobkmar%2FSimpleKotlinMail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobkmar%2FSimpleKotlinMail/lists"}