{"id":19009451,"url":"https://github.com/feltex/servicoemailsimples","last_synced_at":"2025-09-06T13:32:46.486Z","repository":{"id":40519020,"uuid":"447002821","full_name":"feltex/ServicoEmailSimples","owner":"feltex","description":"Projeto básico de como utilizar Spring Boot enviando email via GMail","archived":false,"fork":false,"pushed_at":"2022-01-27T20:33:07.000Z","size":96,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T04:33:53.585Z","etag":null,"topics":["gmail","gmail-api","java","spring-boot","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/feltex.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}},"created_at":"2022-01-11T22:38:21.000Z","updated_at":"2025-01-24T17:33:52.000Z","dependencies_parsed_at":"2022-06-29T20:53:52.375Z","dependency_job_id":null,"html_url":"https://github.com/feltex/ServicoEmailSimples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/feltex/ServicoEmailSimples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feltex%2FServicoEmailSimples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feltex%2FServicoEmailSimples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feltex%2FServicoEmailSimples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feltex%2FServicoEmailSimples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feltex","download_url":"https://codeload.github.com/feltex/ServicoEmailSimples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feltex%2FServicoEmailSimples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273912581,"owners_count":25189969,"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-09-06T02:00:13.247Z","response_time":2576,"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":["gmail","gmail-api","java","spring-boot","springboot"],"created_at":"2024-11-08T19:07:48.329Z","updated_at":"2025-09-06T13:32:45.834Z","avatar_url":"https://github.com/feltex.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Projeto de Envio de Email\n\n\n Projeto simples com Java e Spring Boot para enviar email utilizando contas do Gmail.\n \n Vídeo: https://youtu.be/so3nq5NapHA\n \n\n## Pré Requisitos\n\n - Maven 3.6\n - Java 11\n - Conta de email no [Gmail](https://mail.google.com)\n - Código no GitHub [Feltex](https://github.com/feltex/ServicoEmailSimples)\n\n\n## Criando o jar\n\n    mvn clean package\n\n## Executando o projeto\n\n- Utilizando o arquivo jar\n\n```\n    export SPRING_EMAIL_USERNAME=usuario1.feltex@gmail.com\n    export SPRING_EMAIL_PASSWORD=********************\n\n    java -jar target/ServicoEmail.jar \n```\n\n- Utilizando o maven\n\n```\n    export SPRING_EMAIL_USERNAME=usuario1.feltex@gmail.com\n    export SPRING_EMAIL_PASSWORD=********************\n    \n    mvn spring-boot:run\n```\n\n\n## Possíveis erros\n\n1. Erro de acesso `535-5.7.8 Username and Password not accepted.`  \n\n```\n # Caused by: org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at\n # 535 5.7.8  https://support.google.com/mail/?p=BadCredentials m35sm5842510wms.1 - gsmtp\n```\n\n1. Confirme se usuário e senha estão corretos.\n2. Desabilite a verificação em 2 [etapas](https://support.google.com/accounts/answer/1064203?hl=pt-BR\u0026co=GENIE.Platform%3DDesktop)\n3. Para enviar email em sua aplicação você precisa habilitar uma configuração de segurança no Gmail\n   1. Habilitando aplicações menos Seguras no GMail[detalhes](https://support.google.com/accounts/answer/6010255?hl=pt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeltex%2Fservicoemailsimples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeltex%2Fservicoemailsimples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeltex%2Fservicoemailsimples/lists"}