{"id":15745777,"url":"https://github.com/hemantdwivedi/java-mail-api","last_synced_at":"2025-07-29T13:12:15.332Z","repository":{"id":184132211,"uuid":"671360141","full_name":"hemantDwivedi/java-mail-api","owner":"hemantDwivedi","description":"This repo contains a email notification project.","archived":false,"fork":false,"pushed_at":"2023-07-27T07:05:23.000Z","size":656,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-09T12:11:33.529Z","etag":null,"topics":["corejava","emailnotifications","gmail-smtp","java","javamail-api","javamailsender","mailapi"],"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/hemantDwivedi.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,"governance":null}},"created_at":"2023-07-27T06:30:13.000Z","updated_at":"2023-07-27T07:07:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8b16a5c-ec87-46ca-9e27-8a68e3477cf9","html_url":"https://github.com/hemantDwivedi/java-mail-api","commit_stats":null,"previous_names":["hemantdwivedi/java-mail-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hemantDwivedi/java-mail-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantDwivedi%2Fjava-mail-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantDwivedi%2Fjava-mail-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantDwivedi%2Fjava-mail-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantDwivedi%2Fjava-mail-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hemantDwivedi","download_url":"https://codeload.github.com/hemantDwivedi/java-mail-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemantDwivedi%2Fjava-mail-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267693450,"owners_count":24129133,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["corejava","emailnotifications","gmail-smtp","java","javamail-api","javamailsender","mailapi"],"created_at":"2024-10-04T04:21:56.478Z","updated_at":"2025-07-29T13:12:15.308Z","avatar_url":"https://github.com/hemantDwivedi.png","language":"Java","readme":"# New User Email Notification\n\nThis is a Java application that sends an email notification to new registered user. This small project demonstrate how to use JavaMail to send an email and how to load email credentials form a .env file for added security.\n\n## Getting Started\nFollow these instructions to set up and run the this project on your local machine.\n\n## Prerequisites\n* Java Development Kit (JDK) installed on your machine.\n* A text editor or an Integrated Development Environment (IDE) like Eclipse, IntelliJ IDEA, or NetBeans, But I like IntelliJ IDEA most.\n\n## Installation\n1. Open a Terminal and run the following commands.\n```terminal\nmkdir javamail\ncd javamail\ngit clone https://github.com/hemantDwivedi/java-mail-api.git\n```\nOr you can download and extract ```ZIP``` file.\n\n2. Create a .env file in the root directory of the project and add the following lines to it:\n```file\nSENDER_EMAIL=your_email@example.com\nSENDER_PASSWORD=your_email_password\n```\n\nReplace your_email@example.com with your actual sender email and your_email_password with your actual sender email password.\n\n## Usage\n\n1. Open a terminal or command prompt and navigate to the root directory of the project.\n\n2. Compile the Java classes using the following command:\n\n```terminal\njavac -cp lib/javax.mail.jar:lib/activation.jar src/main/java/com/email/Main.java\n```\n\n3. Run the application using the following command:\n```terminal\njava -cp .:lib/javax.mail.jar:lib/activation.jar src/main/java/com/email/Main\n```\n\n4. The application will prompt you to enter a new user's name and email. It will then send an email to the provided email address, simulating an email notification for a newly created user.\n\n## Things to remember\n* Please keep the .env file secure and do not share it publicly or include it in version control systems.\n\n* This project is for demonstration purposes and lacks proper error handling and security features. In a production environment, use environment variables or other secure methods to manage sensitive configuration.\n\n## Acknowledgments\n- The JavaMail API and JavaBeans Activation Framework for enabling email functionality.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemantdwivedi%2Fjava-mail-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemantdwivedi%2Fjava-mail-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemantdwivedi%2Fjava-mail-api/lists"}