Spring Boot | Sending Email with

  Рет қаралды 48,850

Java Techie

Java Techie

5 жыл бұрын

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

Пікірлер: 141
@SukeshKumar-jc1yx
@SukeshKumar-jc1yx 2 жыл бұрын
Great tutorial, its awesome concept for the email service.
@similemhlanga4186
@similemhlanga4186 3 жыл бұрын
Life saver!!!
@sarojsahoo8763
@sarojsahoo8763 5 жыл бұрын
superb video dude keep it up
@akzliyandoo3888
@akzliyandoo3888 3 жыл бұрын
Great !!!
@RenatoColossuss
@RenatoColossuss 4 жыл бұрын
Thank you, excellent
@burj.ec.d
@burj.ec.d 5 жыл бұрын
Great video!
@user-ir9fm5ek2n
@user-ir9fm5ek2n 3 ай бұрын
Good tutorial about how to implement Freemarker. Thank you.
@luckyrai5435
@luckyrai5435 10 ай бұрын
Awesome tutorial thank you so much bro
@HallsdePapel
@HallsdePapel 4 жыл бұрын
Thank you very much!
@gayanathbuddika2646
@gayanathbuddika2646 3 жыл бұрын
thank you very much. it will helpful for me.
@udayakantaparhi4420
@udayakantaparhi4420 5 жыл бұрын
Awesome bhai..
@bilalzay2286
@bilalzay2286 4 ай бұрын
that was very helpful
@Srinivasan-oj5fc
@Srinivasan-oj5fc 3 жыл бұрын
awesome
@MsSAthreya
@MsSAthreya 3 жыл бұрын
Excellent
@KuldipGhotane
@KuldipGhotane 3 жыл бұрын
Simply Brilliant
@KuldipGhotane
@KuldipGhotane 3 жыл бұрын
I really want to thank you. I liked your teaching methodology and viewing every relatable video from yesterday Keep up the good work
@emanuelsotomayor6474
@emanuelsotomayor6474 Жыл бұрын
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.
@prasetyadhanyputra428
@prasetyadhanyputra428 3 жыл бұрын
Thanks
@SimplyRusty
@SimplyRusty 2 жыл бұрын
How to add subject with dynamic data inside the html template itself ?
@siddhantchourasia291
@siddhantchourasia291 2 жыл бұрын
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
@chiragjain3511
@chiragjain3511 3 ай бұрын
Need one help .. Can i send email for different languages also ?
@sabarivasagan2067
@sabarivasagan2067 3 жыл бұрын
How to write inline images through this code bro.
@prasannapacifist
@prasannapacifist 5 жыл бұрын
in this video clip 16.09 you displayed body section ..i dont know where to add that body function..pls let me know sir
@santhoshkoduri223
@santhoshkoduri223 4 жыл бұрын
template
@Ajay-ds1lv
@Ajay-ds1lv 3 жыл бұрын
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 3 жыл бұрын
Please google it , I assume it occurs as configure email disabled for less secure app
@repakanagesh7615
@repakanagesh7615 Жыл бұрын
How to add an image in the mail body, I am unable to display an image in the mail body
@dumbeatmusic6628
@dumbeatmusic6628 4 жыл бұрын
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 4 жыл бұрын
Share your request structure please Also change context type to application/json in postman then try sending request
@rohinikulkarni8097
@rohinikulkarni8097 Жыл бұрын
how you added application.propertise file deatils like port no, password . Please Explain
@karthikraja-si7te
@karthikraja-si7te 3 жыл бұрын
Sir I am getting authentication error while hitting send from postman ,what I need to do?
@Javatechie
@Javatechie 3 жыл бұрын
Please copy paste error message
@asadisane4552
@asadisane4552 2 жыл бұрын
Type freemarker.template.Configuration not present facing this error
@lelouchgotam1634
@lelouchgotam1634 4 жыл бұрын
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 4 жыл бұрын
Could you please import my code then compare it
@shivammallik2359
@shivammallik2359 9 ай бұрын
Rather than liking the appreciation comment try answering some questions in comment box.Not trying to be rude just a suggestion
@Javatechie
@Javatechie 9 ай бұрын
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 .
@uranchimegmsu5030
@uranchimegmsu5030 4 жыл бұрын
Hello I need help how to add 7:43
@saravanansubramanian4339
@saravanansubramanian4339 3 жыл бұрын
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
@artjomprozorov4662
@artjomprozorov4662 4 жыл бұрын
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 4 жыл бұрын
what about if templates are in DB?
@artjomprozorov4662
@artjomprozorov4662 4 жыл бұрын
@@mikaelangel76 look into StringTemplateLoader to get data from db
@praveengudimalla7849
@praveengudimalla7849 2 жыл бұрын
im getting this error "535-5.7.8 Username and Password not accepted" , how can i fix this
@Javatechie
@Javatechie 2 жыл бұрын
Verify your email credential
@prasannapacifist
@prasannapacifist 5 жыл бұрын
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 5 жыл бұрын
Did you add spring starter security dependency in your project
@prasannapacifist
@prasannapacifist 5 жыл бұрын
how to add ..spring security bro .. ...@@Javatechie
@Javatechie
@Javatechie 5 жыл бұрын
Am asking you did you add any security related dependency ?
@prasannapacifist
@prasannapacifist 5 жыл бұрын
Yes sir...am added correctly
@susmitsircar
@susmitsircar 4 жыл бұрын
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 4 жыл бұрын
Load it from properties file if you don't want to hardcode it in code
@susmitsircar
@susmitsircar 4 жыл бұрын
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
@suparnapoddar621
@suparnapoddar621 5 жыл бұрын
How can I add rows dynamically in the email template?
@Javatechie
@Javatechie 5 жыл бұрын
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 5 жыл бұрын
@@Javatechie Thanks. That was exactly my use case. I was able to resolve it using in ftl file
@Javatechie
@Javatechie 5 жыл бұрын
Cool already I uploaded video spring boot with freemarker template .any Time you can refer it
@kanhaiyatiwari9987
@kanhaiyatiwari9987 4 жыл бұрын
Hello I need Help Regarding how to send url with template in variable in above same example as button
@Javatechie
@Javatechie 4 жыл бұрын
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 3 жыл бұрын
@@Javatechie yes bro like confirm/verify like that
@Javatechie
@Javatechie 3 жыл бұрын
Just add href in button .
@zabedquadri7120
@zabedquadri7120 5 жыл бұрын
@Data i used for what it is lombok given annotatio n or what
@zabedquadri7120
@zabedquadri7120 5 жыл бұрын
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 5 жыл бұрын
in application.properties u mention username and password how to send without knowing sender password
@phhhhggg
@phhhhggg 3 жыл бұрын
@JavaTechie Could you please tell the logic of attaching image in html but should be working on server also?
@Javatechie
@Javatechie 3 жыл бұрын
Image path need to be specific from server directory
@phhhhggg
@phhhhggg 3 жыл бұрын
@@Javatechie yes I did that but in outlook after updating setting also is saying linked image is not present?
@sandyjagiri6269
@sandyjagiri6269 3 жыл бұрын
@@Javatechie can you please help me on how to pass inline image in template
@PracticeTech-rg7yh
@PracticeTech-rg7yh 10 ай бұрын
​@@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 10 ай бұрын
You can do that here only by just including an array of email id
@yogischannel9972
@yogischannel9972 4 жыл бұрын
when i am sending the request from postman then i got username and password not accepted error
@Javatechie
@Javatechie 4 жыл бұрын
In properties file check whether your Gmail credential is proper or not ?
@dumbeatmusic6628
@dumbeatmusic6628 4 жыл бұрын
@@Javatechie sir in mine to this error is coming and im giving my email and pass correct
@santhoshkoduri223
@santhoshkoduri223 4 жыл бұрын
"Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted.
@omaramaoun7173
@omaramaoun7173 4 жыл бұрын
you need to enable on the mail box you use the acces to the less secure application :)
@ExploringTheLife2.0
@ExploringTheLife2.0 4 жыл бұрын
will I send mail from this springboot and using angular
@Javatechie
@Javatechie 4 жыл бұрын
Yes
@ExploringTheLife2.0
@ExploringTheLife2.0 4 жыл бұрын
@@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.
@suryabhagavan2124
@suryabhagavan2124 4 жыл бұрын
i gave the correct credentials but i am getting javax.mail.AuthenticationFailedException . Please help me out.
@Javatechie
@Javatechie 4 жыл бұрын
Check is there any space added in properties
@suryabhagavan2124
@suryabhagavan2124 4 жыл бұрын
@@Javatechie yh i figured it out. I enabled less secure apps to access my mail. Thanks for your reply.
@sandyjagiri6269
@sandyjagiri6269 3 жыл бұрын
Can you please tell how can pass inline image in ftl file
@sabarivasagan2067
@sabarivasagan2067 3 жыл бұрын
Could you got the result?
@venkatasubbaraokoniki86
@venkatasubbaraokoniki86 5 жыл бұрын
How to apply.bootstrap for freemaker template plz upload a video regards that thing.
@Javatechie
@Javatechie 5 жыл бұрын
Good catch Venkata , bootstrap will only support if you add it in tag . outside import won't work ...
@ProzorovTim
@ProzorovTim 4 жыл бұрын
is there a way to add a signure as a logo under the text ?
@Javatechie
@Javatechie 4 жыл бұрын
Yes you can , in ftl file just add footer as a signature
@ProzorovTim
@ProzorovTim 4 жыл бұрын
@@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 4 жыл бұрын
it worked by referring to ClassPathresource and using addliner from MimeMessageHelper , then in template referring to content id
@ProzorovTim
@ProzorovTim 4 жыл бұрын
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 4 жыл бұрын
Then in simple mail subject you just need to add HTML tag No need to use freemarker template
@rezaandika1554
@rezaandika1554 4 жыл бұрын
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 4 жыл бұрын
Are you using spring boot email starter ?
@rezaandika1554
@rezaandika1554 4 жыл бұрын
@@Javatechie What do you mean by this? org.springframework.boot spring-boot-starter-mail yes, I copied the dependency from your github
@Javatechie
@Javatechie 4 жыл бұрын
@@rezaandika1554 could you please tell me your error , because spring security and email both are different context
@prasannapacifist
@prasannapacifist 5 жыл бұрын
sir now its shows white label error ..get method not found
@Javatechie
@Javatechie 5 жыл бұрын
Check proper url mapping ...
@prasannapacifist
@prasannapacifist 5 жыл бұрын
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 5 жыл бұрын
Please forward to javatechie4u@gmail.com
@rothnak098
@rothnak098 4 жыл бұрын
It works well in the localhost but when I change to the https domain it doesn't work. Do you know why?
@Javatechie
@Javatechie 4 жыл бұрын
no am not sure need to check
@rothnak098
@rothnak098 4 жыл бұрын
@@Javatechie ok after check. Please help to answer. thanks
@vishalitaneja5297
@vishalitaneja5297 5 жыл бұрын
Hi, I am getting 501 error javax.mail.jar connection failed. Please help ...
@Javatechie
@Javatechie 5 жыл бұрын
Did you enable less secure app in your Gmail settings ?
@vishalitaneja5297
@vishalitaneja5297 5 жыл бұрын
Yes!!!
@vishalitaneja5297
@vishalitaneja5297 5 жыл бұрын
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 5 жыл бұрын
Now any error you are getting
@vishalitaneja5297
@vishalitaneja5297 5 жыл бұрын
No errors resolved
@souravsingha5690
@souravsingha5690 3 жыл бұрын
Getting SendFailedException(the address is not a valid RFC 5321 address)…..500internal
@Javatechie
@Javatechie 3 жыл бұрын
Check did you enable less secure app in your Gmail
@learnjavatechno
@learnjavatechno 5 жыл бұрын
how can send a multiple mail in postman throu
@Javatechie
@Javatechie 5 жыл бұрын
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 5 жыл бұрын
i want to send a mail to multiple users at a time using postman tool
@Javatechie
@Javatechie 5 жыл бұрын
@@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)
@ExploringTheLife2.0
@ExploringTheLife2.0 4 жыл бұрын
can anyone help me with sample angular code to implement this with any angular project? pls help. Thanks in advance.
@Javatechie
@Javatechie 4 жыл бұрын
Frontend you want angular and backend as it is ?
@ExploringTheLife2.0
@ExploringTheLife2.0 4 жыл бұрын
@@Javatechie yes sir . pls help. Thank u
@Javatechie
@Javatechie 4 жыл бұрын
@@ExploringTheLife2.0 okay I will share poc for this in weekends
@ExploringTheLife2.0
@ExploringTheLife2.0 4 жыл бұрын
@@Javatechie Thank u so much. If possible then pls make video. It will be very helpful for all.
@ExploringTheLife2.0
@ExploringTheLife2.0 4 жыл бұрын
@@Javatechie have u made poc? share on narvekaromkar16@gmail.com
@mohamedazizskiken8279
@mohamedazizskiken8279 3 жыл бұрын
nice video!! How can we add image to an .ftl ? thanks
@Javatechie
@Javatechie 3 жыл бұрын
You need to add inline image as byte[]
@mohamedazizskiken8279
@mohamedazizskiken8279 3 жыл бұрын
@@Javatechie thank you, do you have any exemple ?
@matanmigdal7108
@matanmigdal7108 4 жыл бұрын
i getting Duplicates when sending mail
@Javatechie
@Javatechie 4 жыл бұрын
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 4 жыл бұрын
@@Javatechie ty i find out that i calling the same function twice
@unpluggedsaurav3186
@unpluggedsaurav3186 3 жыл бұрын
Getting 404????
@Javatechie
@Javatechie 3 жыл бұрын
Check the url , also verify whether spring boot able to scan your beans or not
@venkateshdoddi5646
@venkateshdoddi5646 Жыл бұрын
Hi
@puzzleduzzle541
@puzzleduzzle541 2 жыл бұрын
video is not working
@ranjandas6046
@ranjandas6046 3 жыл бұрын
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 Жыл бұрын
Your problem has been solved or not ?
@santhoshkoduri223
@santhoshkoduri223 4 жыл бұрын
please answer
@vuxentillbarn2255
@vuxentillbarn2255 3 жыл бұрын
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.
Spring Boot - Using FreeMarker Template Engine | Java Techie
19:29
Send Email from Spring Boot Application
16:19
Daily Code Buffer
Рет қаралды 69 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 68 МЛН
How I'd Learn Web Development (If I Could Start Over)
6:55
Dylan Cole
Рет қаралды 544 М.
Send emails in Spring Boot apps [Intermediate Spring Boot]
18:55
Dan Geabunea (Romanian Coder)
Рет қаралды 51 М.
What is JWT? JSON Web Tokens Explained (Java Brains)
14:53
Java Brains
Рет қаралды 1 МЛН
Spring boot Annotations (Controller Layer) | Controller, RestController, RequestMapping etc.
34:58
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 12 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 64 МЛН
Yanlışlıkla Telefonumu Parçaladım!😱
0:18
Safak Novruz
Рет қаралды 817 М.
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН