Giter Site home page Giter Site logo

rocketseat-creators-program / spring-mail-sender-thymeleaf-2021-09-25 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 810 KB

Enviando e-mails personalizados com Spring Java Mail Sender e Thymeleaf Template Engine

Java 61.62% HTML 38.38%
java spring spring-boot java-mail-sender thymeleaf-template-engine thymeleaf spring-web back-end spring-data-jpa lombok

spring-mail-sender-thymeleaf-2021-09-25's Introduction

Enviando e-mails personalizados com Spring Java Mail Sender e Thymeleaf Template Engine

Nessa aula aprenderemos:

  • Enviar e-mails utilizando o Java Mail Sender
  • Configurar o Gmail na aplicação
  • Enviar um email com uma simples mensagem de texto
  • Enviar um email com um template personalizado e dinâmico

Tecnologias

Para testar todos os recursos da aplicação, utilize a collection do Postman abaixo:

Configuração do e-mail

    spring.mail.default-encoding=UTF-8
    spring.mail.host=smtp.gmail.com
    [email protected]
    spring.mail.password=your_password
    spring.mail.port=587
    spring.mail.protocol=smtp
    spring.mail.test-connection=false
    spring.mail.properties.mail.smtp.auth=true
    spring.mail.properties.mail.smtp.starttls.enable=true

Importante: É preciso ativar em seu Gmail o "Acesso a app menos seguro"

Segurança Gmail

Links úteis

Ambiente, recursos e requisitos necessários

  • Java 11+
  • Postman/Insomnia
  • Familiaridade com HTML e CSS

spring-mail-sender-thymeleaf-2021-09-25's People

Contributors

pedrohenriquelacombe avatar

Watchers

 avatar  avatar

Forkers

kiljw316

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.