Servlet invoked by mail form action | Community
Skip to main content
October 16, 2015
Solved

Servlet invoked by mail form action

  • October 16, 2015
  • 5 replies
  • 1234 views

Hi,

I want to customize the OOTB mail action and i am unable to figure out the servlet that this file calls. The documentation in form suggest below. I tried putting the path with mail selector and html extension in sling servlet resolver and it did not resolved to any servlet. 

There could also be another servlet that does the actual processing, in such a case the form action and theforward.jsp would only act as the "glue" code. An example of this is the mail action at/libs/foundation/components/form/actions/mail, which forwards details to<currentpath>.mail.html where a mail servlet sits.

I have been able to create a custom form action and custom servlet is being called but an attachment that is part of the request get missing which in case of mail action it comes through so want to see how this magic works.

Using OOTB form and Upload component.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

You can write your own custom email action too:

http://helpx.adobe.com/experience-manager/using/creating-custom-cq-email-services.html

By doing so - you have finer control your use case. 

5 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

You can write your own custom email action too:

http://helpx.adobe.com/experience-manager/using/creating-custom-cq-email-services.html

By doing so - you have finer control your use case. 

Sham_HC
Level 10
October 16, 2015

I am little confused what you are exactly looking here.  Do you want to know how mail action works OR why custom handler is not working?

vikramca06
Level 4
October 16, 2015

Hi,

extract this jar file localhost:4502/libs/foundation/install/cq-wcm-foundation-5.6.2.jar

and look for com.day.cq.wcm.foundation.forms.impl --> MailServlet.class

change as per your requirement.

Thanks.

smacdonald2008
Level 10
October 16, 2015

If you find the documentation lacking or unclear - please open a ticket here:

http://helpx.adobe.com/marketing-cloud/experience-manager.html

October 16, 2015

Sham HC wrote...

I am little confused what you are exactly looking here.  Do you want to know how mail action works OR why custom handler is not working?

 

Thanks Sham for your reply. I actually would be happy if i know which servlet does mail action invoke. I can then see why my code isn't sending emails with attachments.