How to set email notification using struts.Plz give the
example code?

Answer Posted / vijay satlawar

There is no seperate mechanism in struts to send mail.

To send mails you need to use mail API by downloadimg mail.jar.

This needs SMTP port to be enabled in the system which needs
to send mail alerts.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which design pattern the interceptors in struts2 is based on?

587


How do I access token?

597


What should be the name of xml file used for validation in struts?

624


What is the difference between requestaware and servletrequestaware interface?

667


What is the purpose of @element annotation annotation?

686






What is the front controller in struts2?

596


For a single Struts application, can we have multiple struts-config.xml files?

686


Provide some important Struts2 constants that you have used?

643


What is the purpose of @beforeresult?

693


How many servlet controllers are used in a Struts Application?

649


Who makes the struts?

632


What are pull and push mvc architecture and which architecture does struts2 follow?

599


What is apache struts cve 2017 5638?

635


What is the purpose of '@keyproperty'?

669


What is execute method in struts?

576