Hi,
I need to send backup status using cq mail service (For backup, I'm using curl commands via shell scripts).
So, inside shell script, is there any way to use CQ mail service?
Thanks,
Himanshu
Solved! Go to Solution.
Views
Replies
Total Likes
Hi
I am not aware of direct way of doing so, but we can definitely do this.
Create a custom component/Service which will internally use CQ email service (invoked by AJAX).
Now you can convert this AJAX call to CURL OR do POST call VIA CURL.
Link:- http://superuser.com/questions/149329/what-is-the-curl-command-line-syntax-to-do-a-post-request (Curl Get/Post call).
Link:- https://helpx.adobe.com/experience-manager/using/creating-custom-cq-email-services.html (helpx article for creating custom CQ Email Service)
I hope this will help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi
I am not aware of direct way of doing so, but we can definitely do this.
Create a custom component/Service which will internally use CQ email service (invoked by AJAX).
Now you can convert this AJAX call to CURL OR do POST call VIA CURL.
Link:- http://superuser.com/questions/149329/what-is-the-curl-command-line-syntax-to-do-a-post-request (Curl Get/Post call).
Link:- https://helpx.adobe.com/experience-manager/using/creating-custom-cq-email-services.html (helpx article for creating custom CQ Email Service)
I hope this will help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
As Kautuk suggested, There isn't a way to hit CQ mail service through a command. EMail services are not open. You need to register an OSGI service as servlet & make a http request to send an email.
kautuksahni wrote...
Hi
I am not aware of direct way of doing so, but we can definitely do this.
Create a custom component/Service which will internally use CQ email service (invoked by AJAX).
Now you can convert this AJAX call to CURL OR do POST call VIA CURL.
Link:- http://superuser.com/questions/149329/what-is-the-curl-command-line-syntax-to-do-a-post-request (Curl Get/Post call).
Link:- https://helpx.adobe.com/experience-manager/using/creating-custom-cq-email-services.html (helpx article for creating custom CQ Email Service)
I hope this will help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies