{"id":24308842,"url":"https://github.com/ayushkhodankar/emailsenderapplication","last_synced_at":"2026-04-21T06:32:47.003Z","repository":{"id":271256421,"uuid":"912868143","full_name":"Ayushkhodankar/EmailSenderApplication","owner":"Ayushkhodankar","description":" Spring Boot-based Email Sender Application that allows users to send emails through a simple and user-friendly interface","archived":false,"fork":false,"pushed_at":"2025-01-06T15:23:27.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T20:17:08.637Z","etag":null,"topics":["emailsender","jakarta-mail","springboot"],"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/Ayushkhodankar.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-06T15:00:49.000Z","updated_at":"2025-01-06T15:23:31.000Z","dependencies_parsed_at":"2025-01-07T03:15:33.660Z","dependency_job_id":null,"html_url":"https://github.com/Ayushkhodankar/EmailSenderApplication","commit_stats":null,"previous_names":["ayushkhodankar/emailsenderapplication"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayushkhodankar%2FEmailSenderApplication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayushkhodankar%2FEmailSenderApplication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayushkhodankar%2FEmailSenderApplication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayushkhodankar%2FEmailSenderApplication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ayushkhodankar","download_url":"https://codeload.github.com/Ayushkhodankar/EmailSenderApplication/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242277696,"owners_count":20101545,"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":["emailsender","jakarta-mail","springboot"],"created_at":"2025-01-17T05:11:44.307Z","updated_at":"2026-04-21T06:32:46.962Z","avatar_url":"https://github.com/Ayushkhodankar.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eEmail Sender Application\u003c/h1\u003e\n\n\u003cp\u003e\n    This is a \u003cstrong\u003eSpring Boot-based Email Sender Application\u003c/strong\u003e that allows users to send emails through a simple and user-friendly interface.\n    The backend is built with Spring Boot, and the frontend is developed using HTML, CSS, and JavaScript. This project supports Java 17 and integrates\n    with \u003cstrong\u003eSMTP\u003c/strong\u003e for sending emails.\n\u003c/p\u003e\n\n\u003ch2\u003eFeatures\u003c/h2\u003e\n\u003cul\u003e\n    \u003cli\u003eSend emails to any recipient.\u003c/li\u003e\n    \u003cli\u003eSimple frontend with a lightweight design.\u003c/li\u003e\n    \u003cli\u003eSecure SMTP authentication.\u003c/li\u003e\n    \u003cli\u003eConfigurable SMTP settings via \u003ccode\u003eapplication.properties\u003c/code\u003e.\u003c/li\u003e\n    \u003cli\u003eBuilt for Java 17.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eProject Structure\u003c/h2\u003e\n\u003cpre\u003e\nEmailSender/\n├── src/\n│   ├── main/\n│   │   ├── java/com/emailsender/\n│   │   │   ├── EmailSenderApplication.java       # Main application file\n│   │   │   ├── controller/EmailController.java   # REST API controller\n│   │   │   ├── service/EmailService.java         # Email sending logic\n│   │   ├── resources/\n│   │   │   ├── application.properties            # Email configuration\n│   │   ├── webapp/\n│   │   │   ├── index.html                        # Frontend HTML\n│   │   │   ├── styles.css                        # Frontend CSS\n├── pom.xml                                       # Maven dependencies\n\u003c/pre\u003e\n\n\u003ch2\u003ePrerequisites\u003c/h2\u003e\n\u003ch3\u003eSoftware Requirements:\u003c/h3\u003e\n\u003cul\u003e\n    \u003cli\u003eJava 17 or later installed.\u003c/li\u003e\n    \u003cli\u003eMaven installed.\u003c/li\u003e\n    \u003cli\u003eAn email account for SMTP (e.g., Gmail, Outlook).\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eSetup Instructions\u003c/h2\u003e\n\u003ch3\u003eClone the Repository\u003c/h3\u003e\n\u003cpre\u003e\ngit clone https://github.com/your-username/email-sender.git\ncd email-sender\n\u003c/pre\u003e\n\n\u003ch3\u003eConfigure the SMTP Server\u003c/h3\u003e\n\u003col\u003e\n    \u003cli\u003eOpen the \u003ccode\u003esrc/main/resources/application.properties\u003c/code\u003e file.\u003c/li\u003e\n    \u003cli\u003eUpdate the following properties with your email and password:\n        \u003cpre\u003e\nspring.mail.host=smtp.gmail.com\nspring.mail.port=587\nspring.mail.username=your-email@gmail.com\nspring.mail.password=your-app-password\nspring.mail.properties.mail.smtp.auth=true\nspring.mail.properties.mail.smtp.starttls.enable=true\n        \u003c/pre\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n        For Gmail:\n        \u003cul\u003e\n            \u003cli\u003eIf you use \u003cstrong\u003e2FA\u003c/strong\u003e, create an \u003ca href=\"https://support.google.com/accounts/answer/185833\" target=\"_blank\"\u003eApp Password\u003c/a\u003e.\u003c/li\u003e\n            \u003cli\u003eIf not, enable \"Less Secure Apps\" in your \u003ca href=\"https://myaccount.google.com/security-checkup\" target=\"_blank\"\u003eGoogle Account settings\u003c/a\u003e.\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/li\u003e\n\u003c/ol\u003e\n\n\u003ch3\u003eBuild and Run the Application\u003c/h3\u003e\n\u003cpre\u003e\nmvn clean install\nmvn spring-boot:run\n\u003c/pre\u003e\n\n\u003ch3\u003eAccess the Frontend\u003c/h3\u003e\n\u003cp\u003eOpen your browser and go to:\u003c/p\u003e\n\u003cpre\u003e\nhttp://localhost:8080\n\u003c/pre\u003e\n\u003cp\u003eFill in the form with the recipient email, subject, and message, then click \u003cstrong\u003eSend Email\u003c/strong\u003e.\u003c/p\u003e\n\n\u003ch2\u003eAPI Endpoints\u003c/h2\u003e\n\u003ch3\u003eSend Email\u003c/h3\u003e\n\u003cp\u003e\u003cstrong\u003ePOST\u003c/strong\u003e \u003ccode\u003e/api/email/send\u003c/code\u003e\u003c/p\u003e\n\n\u003ch4\u003eRequest Parameters:\u003c/h4\u003e\n\u003ctable\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth\u003eParameter\u003c/th\u003e\n            \u003cth\u003eType\u003c/th\u003e\n            \u003cth\u003eDescription\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003ccode\u003eto\u003c/code\u003e\u003c/td\u003e\n            \u003ctd\u003eString\u003c/td\u003e\n            \u003ctd\u003eRecipient email address\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003ccode\u003esubject\u003c/code\u003e\u003c/td\u003e\n            \u003ctd\u003eString\u003c/td\u003e\n            \u003ctd\u003eEmail subject\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003ccode\u003ebody\u003c/code\u003e\u003c/td\u003e\n            \u003ctd\u003eString\u003c/td\u003e\n            \u003ctd\u003eEmail message body\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003ch4\u003eExample Request:\u003c/h4\u003e\n\u003cpre\u003e\ncurl -X POST \"http://localhost:8080/api/email/send\" \\\n     -d \"to=example@example.com\u0026subject=Hello\u0026body=Test message\"\n\u003c/pre\u003e\n\n\u003ch4\u003eExample Response:\u003c/h4\u003e\n\u003cp\u003e\u003cstrong\u003eSuccess:\u003c/strong\u003e\u003c/p\u003e\n\u003cpre\u003e\n\"Email sent successfully to example@example.com\"\n\u003c/pre\u003e\n\u003cp\u003e\u003cstrong\u003eError:\u003c/strong\u003e\u003c/p\u003e\n\u003cpre\u003e\n\"Error sending email: Authentication failed\"\n\u003c/pre\u003e\n\n\u003ch2\u003eLicense\u003c/h2\u003e\n\u003cp\u003eThis project is licensed under the MIT License. See the \u003ccode\u003eLICENSE\u003c/code\u003e file for details.\u003c/p\u003e\n\n\u003ch2\u003eAcknowledgements\u003c/h2\u003e\n\u003cul\u003e\n    \u003cli\u003e\u003ca href=\"https://spring.io/projects/spring-boot\" target=\"_blank\"\u003eSpring Boot Documentation\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://eclipse-ee4j.github.io/mail/\" target=\"_blank\"\u003eJakarta Mail Documentation\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://support.google.com/accounts/answer/185833\" target=\"_blank\"\u003eGoogle App Password Guide\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayushkhodankar%2Femailsenderapplication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayushkhodankar%2Femailsenderapplication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayushkhodankar%2Femailsenderapplication/lists"}