{"id":21653870,"url":"https://github.com/aadewunmi/java-email-application","last_synced_at":"2025-03-20T04:33:34.078Z","repository":{"id":109353464,"uuid":"585228479","full_name":"AAdewunmi/Java-Email-Application","owner":"AAdewunmi","description":"JavaMail API Application - Send Mail in Java using SMTP","archived":false,"fork":false,"pushed_at":"2023-01-08T09:29:30.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T06:11:36.554Z","etag":null,"topics":["email-application","java","javamail-api","javamailapi","smtp","smtp-protocol","smtp-server"],"latest_commit_sha":null,"homepage":"","language":"Java","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/AAdewunmi.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":"2023-01-04T16:34:13.000Z","updated_at":"2023-01-08T08:55:47.000Z","dependencies_parsed_at":"2023-04-02T11:05:01.002Z","dependency_job_id":null,"html_url":"https://github.com/AAdewunmi/Java-Email-Application","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAdewunmi%2FJava-Email-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAdewunmi%2FJava-Email-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAdewunmi%2FJava-Email-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAdewunmi%2FJava-Email-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AAdewunmi","download_url":"https://codeload.github.com/AAdewunmi/Java-Email-Application/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244553395,"owners_count":20471170,"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":["email-application","java","javamail-api","javamailapi","smtp","smtp-protocol","smtp-server"],"created_at":"2024-11-25T08:21:19.358Z","updated_at":"2025-03-20T04:33:34.054Z","avatar_url":"https://github.com/AAdewunmi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Title:\n\nJava Email Application\n\n\n## 1. Project Description:\n\nUsing JavaMail API to send emails using SMTP from Java applications:\n\n1. without authentication, \n2. with TLS Authentication,\n3. with SSL Authentication and Email attachment and image.\n\n\n## 2. Tech Stack:\n\n- Java 9\n- JavaMail API\n- Gmail SMTP server\n\n\n## 3. Installing:\n\ni. Clone the git repo\n\n```\nhttps://github.com/AAdewunmi/Java-Email-Application.git\n```\n\nii. Open project folder\n\niii. Explore\n\n😎\n\n\n## 4. How To Use:\n\nTo send emails:\n\n1. without authentication -\u003e Run in IDE -\u003e ```src/main/java/com/application/SimpleEmail.java```, \n2. with TLS Authentication -\u003e Run in IDE -\u003e ```src/main/java/com/application/TLSEmail.java```,\n3. with SSL Authentication and Email attachment and image Run in IDE -\u003e ```src/main/java/com/application/SSLEmail.java```.\n\n\n## 5. JavaMail API Troubleshooting Tips: \n\n1. ```java.net.UnknownHostException``` comes when your system is not able to resolve the IP address for the SMTP server, it might be wrong or not accessible from your network. For example, GMail SMTP server is ```smtp.gmail.com``` and if I use ```smtp.google.com```, I will get this exception. If the hostname is correct, try to ping the server through command line to make sure it’s accessible from your system.\n\n\n![Screenshot 2023-01-08 at 08-49-37 JavaMail Example - Send Mail in Java using SMTP DigitalOcean](https://user-images.githubusercontent.com/15172744/211188503-23c8cd16-a151-485a-a204-dc6daf65225b.png)\n\n2. If your program is stuck in Transport send() method call, check that SMTP port is correct. If it’s correct then use telnet to verify that it’s accessible from you machine, you will get output like below.\n\n![Screenshot 2023-01-08 at 08-49-10 JavaMail Example - Send Mail in Java using SMTP DigitalOcean](https://user-images.githubusercontent.com/15172744/211188520-0b7e3b80-5253-46fe-b8b8-923526d178d9.png)\n\n\n## 6. Contributing:\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n\n## 7. Original Creator:\n\nAuthor:  Pankaj (Developer and author at DigitalOcean)\n \nTutorial Title:  JavaMail Example - Send Mail in Java using SMTP\n\nTutorial URL: https://www.digitalocean.com/community/tutorials/javamail-example-send-mail-in-java-smtp\n\nDate: August 3, 2022\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faadewunmi%2Fjava-email-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faadewunmi%2Fjava-email-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faadewunmi%2Fjava-email-application/lists"}