Expand my Community achievements bar.

SOLVED

Servlet invoked by mail form action

Avatar

Former Community Member

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

5 Replies

Avatar

Correct answer by
Level 10

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. 

Avatar

Level 10

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?

Avatar

Level 4

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.

Avatar

Level 10

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

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

Avatar

Former Community Member

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.