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

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

Using graph api to send email

Avatar

Level 2

Hi There, 

 

Is it possible to use Outlook graph API to send email in AEM, instead of configuring out configuring OOTB SMTP service?

 

Send mail - Microsoft Graph v1.0 | Microsoft Docs

 

Thanks, 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor and Adobe Champion

Hi @cqbeginner ,

 

Yes, that is possible. There are REST based APIs available which you can trigger from OSGI service.

 

https://docs.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0

원본 게시물의 솔루션 보기

6 답변 개

Avatar

Community Advisor

Hey @cqbeginner 

Can you please confirm why you don't want to use the day cq mail service?

I wanted to understand the use case for using outlook api.

Thanks,

Prince

Avatar

Level 2
Hi Prince,

Avatar

Level 2
Hi Prince, there are some limitation in my organization to configure SMTP server directly, But can use APIs to send email. Wondering, if any of our members taken that route.

Avatar

정확한 답변 작성자:
Community Advisor and Adobe Champion

Hi @cqbeginner ,

 

Yes, that is possible. There are REST based APIs available which you can trigger from OSGI service.

 

https://docs.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0

Avatar

Level 2
Thanks Ritesh. Do you know, what do we miss if we dont use OOTB email service?

Avatar

Level 2

"Yes, that is possible. There are REST based APIs available which you can trigger from OSGI service.", Where does this start. I am asking the same question. I want to configure it so anytime AEM wants to send an "email" it calls my service (graph.microsoft.com) rather then default mail service in AEM.