내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Servlet invoked by mail form action

Avatar

이전 커뮤니티 멤버

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 채택된 해결책 개

Avatar

정확한 답변 작성자:
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. 

원본 게시물의 솔루션 보기

5 답변 개

Avatar

정확한 답변 작성자:
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

이전 커뮤니티 멤버

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.