Spring Boot | Sending Email with

Sdílet
Vložit
  • čas přidán 12. 11. 2018
  • This video explains you how to send an email with HTML body in spring boot using FreeMarker Template
    #JavaTechie #FreeMarker #Email #SpringBoot
    GitHub:
    github.com/Java-Techie-jt/spr...
    Blogs:
    javagyanmantra.wixsite.com/we...
    Facebook:
    / 919464521471923
    Like and Subscribe
  • Věda a technologie

Komentáře • 141

  • @SukeshKumar-jc1yx
    @SukeshKumar-jc1yx Před 2 lety +1

    Great tutorial, its awesome concept for the email service.

  • @sarojsahoo8763
    @sarojsahoo8763 Před 5 lety +1

    superb video dude keep it up

  • @gayanathbuddika2646
    @gayanathbuddika2646 Před 3 lety +1

    thank you very much. it will helpful for me.

  • @user-ir9fm5ek2n
    @user-ir9fm5ek2n Před 3 měsíci

    Good tutorial about how to implement Freemarker. Thank you.

  • @luckyrai5435
    @luckyrai5435 Před 10 měsíci +1

    Awesome tutorial thank you so much bro

  • @similemhlanga4186
    @similemhlanga4186 Před 3 lety +4

    Life saver!!!

  • @RenatoColossuss
    @RenatoColossuss Před 4 lety +1

    Thank you, excellent

  • @burj.ec.d
    @burj.ec.d Před 5 lety

    Great video!

  • @emanuelsotomayor6474
    @emanuelsotomayor6474 Před rokem

    How could I insert images that I have in my folder resources/templates/images/? When I send the email, it doesn't recognize the image, it can't find it.

  • @udayakantaparhi4420
    @udayakantaparhi4420 Před 5 lety

    Awesome bhai..

  • @akzliyandoo3888
    @akzliyandoo3888 Před 3 lety +1

    Great !!!

  • @HallsdePapel
    @HallsdePapel Před 4 lety

    Thank you very much!

  • @SimplyRusty
    @SimplyRusty Před 2 lety

    How to add subject with dynamic data inside the html template itself ?

  • @bilalzay2286
    @bilalzay2286 Před 4 měsíci +1

    that was very helpful

  • @siddhantchourasia291
    @siddhantchourasia291 Před 2 lety +1

    Can you please tell how to add username,password,port and host in the code as you have added that in application.properties but not in code. Thanks for the video . Nice explanation

  • @KuldipGhotane
    @KuldipGhotane Před 3 lety +1

    Simply Brilliant

    • @KuldipGhotane
      @KuldipGhotane Před 3 lety +1

      I really want to thank you.
      I liked your teaching methodology and viewing every relatable video from yesterday
      Keep up the good work

  • @sabarivasagan2067
    @sabarivasagan2067 Před 3 lety +1

    How to write inline images through this code bro.

  • @chiragjain3511
    @chiragjain3511 Před 3 měsíci

    Need one help .. Can i send email for different languages also ?

  • @Srinivasan-oj5fc
    @Srinivasan-oj5fc Před 3 lety +1

    awesome

  • @repakanagesh7615
    @repakanagesh7615 Před rokem

    How to add an image in the mail body, I am unable to display an image in the mail body

  • @MsSAthreya
    @MsSAthreya Před 3 lety

    Excellent

  • @rohinikulkarni8097
    @rohinikulkarni8097 Před rokem

    how you added application.propertise file deatils like port no, password . Please Explain

  • @prasannapacifist
    @prasannapacifist Před 5 lety

    in this video clip 16.09 you displayed body section ..i dont know where to add that body function..pls let me know sir

  • @Ajay-ds1lv
    @Ajay-ds1lv Před 3 lety +1

    getting this error : javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Failed messages: javax.mail.MessagingException: Could not convert socket to TLS;

    • @Javatechie
      @Javatechie  Před 3 lety

      Please google it , I assume it occurs as configure email disabled for less secure app

  • @dumbeatmusic6628
    @dumbeatmusic6628 Před 4 lety +1

    please help me im getting error
    "timestamp": "2020-05-29T05:46:22.368+0000",
    "status": 415,
    "error": "Unsupported Media Type",
    "message": "Content type 'text/plain;charset=UTF-8' not supported",

    • @Javatechie
      @Javatechie  Před 4 lety

      Share your request structure please
      Also change context type to application/json in postman then try sending request

  • @asadisane4552
    @asadisane4552 Před 2 lety

    Type freemarker.template.Configuration not present
    facing this error

  • @karthikraja-si7te
    @karthikraja-si7te Před 3 lety +1

    Sir I am getting authentication error while hitting send from postman ,what I need to do?

  • @uranchimegmsu5030
    @uranchimegmsu5030 Před 4 lety

    Hello I need help how to add 7:43

  • @praveengudimalla7849
    @praveengudimalla7849 Před 2 lety +1

    im getting this error "535-5.7.8 Username and Password not accepted" , how can i fix this

  • @saravanansubramanian4339

    Hello sir
    I want to add the email templates like this using servlet how can i do sir please guide me sir.
    Please mail me sir i will give some amount also if you could clear this one sir

  • @lelouchgotam1634
    @lelouchgotam1634 Před 4 lety +1

    i get mail with content as

    what have i done wrong,
    aslo had set (msg,MimeMessageHelper.MULTIPART_MODE_MIXED_RELATED,StandardCharsets.UTF_8.name())

    • @Javatechie
      @Javatechie  Před 4 lety

      Could you please import my code then compare it

  • @prasetyadhanyputra428
    @prasetyadhanyputra428 Před 3 lety +1

    Thanks

  • @kanhaiyatiwari9987
    @kanhaiyatiwari9987 Před 4 lety +1

    Hello I need Help Regarding how to send url with template in variable in above same example as button

    • @Javatechie
      @Javatechie  Před 4 lety +1

      Didn't get you ? Let me know if I understand correctly
      You want to display url as a button in your template correct ?

    • @c73media7
      @c73media7 Před 3 lety +1

      @@Javatechie yes bro
      like confirm/verify like that

    • @Javatechie
      @Javatechie  Před 3 lety

      Just add href in button .

  • @prasannapacifist
    @prasannapacifist Před 5 lety

    waiting your reply..if once i run the local host with correct page name its re direct some login page but i dont know its mapping from where in the project .. note: am using linux os ......

    • @Javatechie
      @Javatechie  Před 5 lety

      Did you add spring starter security dependency in your project

    • @prasannapacifist
      @prasannapacifist Před 5 lety +1

      how to add ..spring security bro ..
      ...@@Javatechie

    • @Javatechie
      @Javatechie  Před 5 lety

      Am asking you did you add any security related dependency ?

    • @prasannapacifist
      @prasannapacifist Před 5 lety

      Yes sir...am added correctly

  • @artjomprozorov4662
    @artjomprozorov4662 Před 4 lety +9

    Great tutorial, however, there is no need to create a configuration class, you can just write spring.freemarker.template-loader-path= your path in the application.properties

    • @mikaelangel76
      @mikaelangel76 Před 4 lety +1

      what about if templates are in DB?

    • @artjomprozorov4662
      @artjomprozorov4662 Před 4 lety

      @@mikaelangel76 look into StringTemplateLoader to get data from db

  • @suparnapoddar621
    @suparnapoddar621 Před 5 lety +1

    How can I add rows dynamically in the email template?

    • @Javatechie
      @Javatechie  Před 5 lety +1

      For that you need to add data dynamically to your ftl file .
      Let's say I want to send list of objects to ftl file
      So from DB suppose I get two records so in ftl while iterate it will map two record to it and same Will be display as part email response
      Same way if in my DB , more than 2 record is there then it will map to ftl as a separate row and it will display as mail body .
      Feel free to ask your doubts .if not clear

    • @suparnapoddar621
      @suparnapoddar621 Před 5 lety +1

      @@Javatechie Thanks. That was exactly my use case. I was able to resolve it using in ftl file

    • @Javatechie
      @Javatechie  Před 5 lety

      Cool already I uploaded video spring boot with freemarker template .any Time you can refer it

  • @zabedquadri7120
    @zabedquadri7120 Před 5 lety +1

    @Data i used for what it is lombok given annotatio n or what

    • @zabedquadri7120
      @zabedquadri7120 Před 5 lety +1

      got it its for setter and getter and @AllArgsConstructor generates a constructor with 1 parameter for each field in your class and @NoArgsConstructor will generate a constructor with no parameters am i rit

    • @zabedquadri7120
      @zabedquadri7120 Před 5 lety

      in application.properties u mention username and password how to send without knowing sender password

  • @santhoshkoduri223
    @santhoshkoduri223 Před 4 lety

    "Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted.

    • @omaramaoun7173
      @omaramaoun7173 Před 4 lety

      you need to enable on the mail box you use the acces to the less secure application :)

  • @venkatasubbaraokoniki86
    @venkatasubbaraokoniki86 Před 5 lety +1

    How to apply.bootstrap for freemaker template plz upload a video regards that thing.

    • @Javatechie
      @Javatechie  Před 5 lety

      Good catch Venkata , bootstrap will only support if you add it in tag . outside import won't work ...

  • @yogischannel9972
    @yogischannel9972 Před 4 lety +1

    when i am sending the request from postman then i got username and password not accepted error

    • @Javatechie
      @Javatechie  Před 4 lety

      In properties file check whether your Gmail credential is proper or not ?

    • @dumbeatmusic6628
      @dumbeatmusic6628 Před 4 lety

      @@Javatechie sir in mine to this error is coming and im giving my email and pass correct

  • @phhhhggg
    @phhhhggg Před 3 lety +1

    @JavaTechie Could you please tell the logic of attaching image in html but should be working on server also?

    • @Javatechie
      @Javatechie  Před 3 lety +1

      Image path need to be specific from server directory

    • @phhhhggg
      @phhhhggg Před 3 lety

      @@Javatechie yes I did that but in outlook after updating setting also is saying linked image is not present?

    • @sandyjagiri6269
      @sandyjagiri6269 Před 3 lety

      @@Javatechie can you please help me on how to pass inline image in template

    • @PracticeTech-rg7yh
      @PracticeTech-rg7yh Před 10 měsíci

      ​@@Javatechiewhat about if you want to send notification email to for example mulitple client email accounts? Do you have a tutorial for that?

    • @Javatechie
      @Javatechie  Před 10 měsíci

      You can do that here only by just including an array of email id

  • @susmitsircar
    @susmitsircar Před 4 lety +1

    How can the senderId (emailId)be dynamic, what will be the best way to design so that the senderId(emailId) can be dynamic

    • @Javatechie
      @Javatechie  Před 4 lety

      Load it from properties file if you don't want to hardcode it in code

    • @susmitsircar
      @susmitsircar Před 4 lety

      in that case i think we need a factory class, to handle the same? so if the senderId is now of different conpared to the earler one, in first place mail was sent using outlook now it may be gmail in that case the SMTP host may differ

  • @suryabhagavan2124
    @suryabhagavan2124 Před 4 lety +1

    i gave the correct credentials but i am getting javax.mail.AuthenticationFailedException . Please help me out.

    • @Javatechie
      @Javatechie  Před 4 lety

      Check is there any space added in properties

    • @suryabhagavan2124
      @suryabhagavan2124 Před 4 lety +1

      @@Javatechie yh i figured it out. I enabled less secure apps to access my mail. Thanks for your reply.

  • @rezaandika1554
    @rezaandika1554 Před 4 lety

    I want to ask, why can't I send an email and not display any messages? I have added spring security
    thank you

    • @Javatechie
      @Javatechie  Před 4 lety

      Are you using spring boot email starter ?

    • @rezaandika1554
      @rezaandika1554 Před 4 lety

      @@Javatechie What do you mean by this?
      org.springframework.boot
      spring-boot-starter-mail

      yes, I copied the dependency from your github

    • @Javatechie
      @Javatechie  Před 4 lety

      @@rezaandika1554 could you please tell me your error , because spring security and email both are different context

  • @sandyjagiri6269
    @sandyjagiri6269 Před 3 lety +1

    Can you please tell how can pass inline image in ftl file

  • @ExploringTheLife2.0
    @ExploringTheLife2.0 Před 4 lety +1

    will I send mail from this springboot and using angular

    • @Javatechie
      @Javatechie  Před 4 lety +1

      Yes

    • @ExploringTheLife2.0
      @ExploringTheLife2.0 Před 4 lety

      @@Javatechie can u pls help by sharing an angular sample code If U have, with this implementation? or any video link then also its ok.

  • @ProzorovTim
    @ProzorovTim Před 4 lety +1

    is there a way to add a signure as a logo under the text ?

    • @Javatechie
      @Javatechie  Před 4 lety

      Yes you can , in ftl file just add footer as a signature

    • @ProzorovTim
      @ProzorovTim Před 4 lety

      @@Javatechie i mean would i have to add it to my map for dynamic binding or it can just be refereed to the path where its located. Thank you man , i attempt it with img src and the path and it didnt work so i would appreciate if you could explain how to refer to an image -> also i am sending it to outlook so it should be done so that embed image appears successfully there

    • @ProzorovTim
      @ProzorovTim Před 4 lety +1

      it worked by referring to ClassPathresource and using addliner from MimeMessageHelper , then in template referring to content id

    • @ProzorovTim
      @ProzorovTim Před 4 lety +1

      My apologies for another question, but if i do not need dynamic binding and simply need a html content, what can i use instea of freemarker to just refer to my template and avoid creating configuration class

    • @Javatechie
      @Javatechie  Před 4 lety

      Then in simple mail subject you just need to add HTML tag
      No need to use freemarker template

  • @souravsingha5690
    @souravsingha5690 Před 3 lety +1

    Getting SendFailedException(the address is not a valid RFC 5321 address)…..500internal

    • @Javatechie
      @Javatechie  Před 3 lety

      Check did you enable less secure app in your Gmail

  • @prasannapacifist
    @prasannapacifist Před 5 lety +1

    sir now its shows white label error ..get method not found

    • @Javatechie
      @Javatechie  Před 5 lety

      Check proper url mapping ...

    • @prasannapacifist
      @prasannapacifist Před 5 lety

      i did not change any code from your githup code..
      just i import and run the code ..
      sir if you don't mind..
      give me your mail id ..
      i will send my problem and error correctly ..
      @@Javatechie

    • @Javatechie
      @Javatechie  Před 5 lety

      Please forward to javatechie4u@gmail.com

  • @vishalitaneja5297
    @vishalitaneja5297 Před 5 lety +1

    Hi, I am getting 501 error javax.mail.jar connection failed. Please help ...

    • @Javatechie
      @Javatechie  Před 5 lety

      Did you enable less secure app in your Gmail settings ?

    • @vishalitaneja5297
      @vishalitaneja5297 Před 5 lety

      Yes!!!

    • @vishalitaneja5297
      @vishalitaneja5297 Před 5 lety

      Actually I haven't added mail dependency in starting so added this jar through build path.Is this the cause because m getting javax.mail connect failed error.

    • @Javatechie
      @Javatechie  Před 5 lety

      Now any error you are getting

    • @vishalitaneja5297
      @vishalitaneja5297 Před 5 lety

      No errors resolved

  • @ExploringTheLife2.0
    @ExploringTheLife2.0 Před 4 lety +1

    can anyone help me with sample angular code to implement this with any angular project? pls help. Thanks in advance.

    • @Javatechie
      @Javatechie  Před 4 lety

      Frontend you want angular and backend as it is ?

    • @ExploringTheLife2.0
      @ExploringTheLife2.0 Před 4 lety +1

      @@Javatechie yes sir . pls help. Thank u

    • @Javatechie
      @Javatechie  Před 4 lety

      @@ExploringTheLife2.0 okay I will share poc for this in weekends

    • @ExploringTheLife2.0
      @ExploringTheLife2.0 Před 4 lety

      @@Javatechie Thank u so much. If possible then pls make video. It will be very helpful for all.

    • @ExploringTheLife2.0
      @ExploringTheLife2.0 Před 4 lety

      @@Javatechie have u made poc? share on narvekaromkar16@gmail.com

  • @learnjavatechno
    @learnjavatechno Před 5 lety +1

    how can send a multiple mail in postman throu

    • @Javatechie
      @Javatechie  Před 5 lety

      Sending multiple mail to single user or single mail you want to send multiple user
      Could you please elaborate more about your requirement

    • @learnjavatechno
      @learnjavatechno Před 5 lety +1

      i want to send a mail to multiple users at a time using postman tool

    • @Javatechie
      @Javatechie  Před 5 lety

      @@learnjavatechno very simple in helper.setTo(new String[]{"mail I'd 1","mail I'd 2"})
      Like this you can set else from post man send list of email and then iterate it in service and pass it to helper.setTo(email)

  • @shivammallik2359
    @shivammallik2359 Před 8 měsíci +1

    Rather than liking the appreciation comment try answering some questions in comment box.Not trying to be rude just a suggestion

    • @Javatechie
      @Javatechie  Před 8 měsíci

      I always respond to comments, sometimes I might miss some messages which are not displayed further on top so that could be the only reason I missed .

  • @puzzleduzzle541
    @puzzleduzzle541 Před 2 lety

    video is not working

  • @rothnak098
    @rothnak098 Před 4 lety +1

    It works well in the localhost but when I change to the https domain it doesn't work. Do you know why?

    • @Javatechie
      @Javatechie  Před 4 lety +1

      no am not sure need to check

    • @rothnak098
      @rothnak098 Před 4 lety

      @@Javatechie ok after check. Please help to answer. thanks

  • @mohamedazizskiken8279
    @mohamedazizskiken8279 Před 3 lety +1

    nice video!!
    How can we add image to an .ftl ? thanks

  • @matanmigdal7108
    @matanmigdal7108 Před 4 lety +1

    i getting Duplicates when sending mail

    • @Javatechie
      @Javatechie  Před 4 lety

      Check in code somewhere you are calling send email twice or may be send email execute inside a loop .
      Cross verify once please

    • @matanmigdal7108
      @matanmigdal7108 Před 4 lety +1

      @@Javatechie ty i find out that i calling the same function twice

  • @unpluggedsaurav3186
    @unpluggedsaurav3186 Před 3 lety +1

    Getting 404????

    • @Javatechie
      @Javatechie  Před 3 lety

      Check the url , also verify whether spring boot able to scan your beans or not

  • @ranjandas6046
    @ranjandas6046 Před 3 lety

    Code is not working. I am facing the issue inspite of using right username and password. {
    "timestamp": "2020-12-22T16:15:59.514+0000",
    "status": 500,
    "error": "Internal Server Error",
    "message": "Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
    535 5.7.8 support.google.com/mail/?p=BadCredentials p15sm21627304pgi.40 - gsmtp
    ",
    "trace": "org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
    535 5.7.8 support.google.com/mail/?p=BadCredentials p15sm21627304pgi.40 - gsmtp

    \tat org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:438)
    \tat org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:359)
    \tat org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:354)
    \tat com.javatechie.email.api.service.EmailService.sendEmail(EmailService.java:50)
    \tat com.javatechie.email.api.SpringBootEmailFreemarkerApplication.sendEmail(SpringBootEmailFreemarkerApplication.java:29)
    \tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    \tat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    \tat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    \tat java.lang.reflect.Method.invoke(Unknown Source)
    \tat org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:215)
    \tat org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:142)
    \tat org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
    \tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
    \tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800)
    \tat org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
    \tat org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
    \tat org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
    \tat org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:998)
    \tat org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:901)
    \tat javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
    \tat org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:875)
    \tat javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
    \tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    \tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    \tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
    \tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    \tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    \tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
    \tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    \tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    \tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    \tat org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
    \tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    \tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    \tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    \tat org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
    \tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    \tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    \tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    \tat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
    \tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    \tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    \tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    \tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
    \tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    \tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
    \tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
    \tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
    \tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
    \tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    \tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
    \tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    \tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)
    \tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
    \tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    \tat java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    \tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    \tat java.lang.Thread.run(Unknown Source)
    Caused by: javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
    535 5.7.8 support.google.com/mail/?p=BadCredentials p15sm21627304pgi.40 - gsmtp

    \tat com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:965)
    \tat com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:876)
    \tat com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:780)
    \tat javax.mail.Service.connect(Service.java:366)
    \tat org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport(JavaMailSenderImpl.java:515)
    \tat org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:435)
    \t... 58 more
    ",
    "path": "/sendingEmail"
    }

    • @sdkosm
      @sdkosm Před rokem

      Your problem has been solved or not ?

  • @santhoshkoduri223
    @santhoshkoduri223 Před 4 lety

    please answer

  • @venkateshdoddi5646
    @venkateshdoddi5646 Před rokem

    Hi

  • @vuxentillbarn2255
    @vuxentillbarn2255 Před 3 lety +1

    Lots of fixes to be done on the code you have that you dont even create in front of us. Just copy paste and then explain some of it and the other "it all looks good". It's a big no from me, thanks for wasting 40 minutes of my life.