Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Using graph api to send email

cqbeginner
Level 2
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 Accepted Solution
Ritesh_M
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

5 Replies
Prince_Shivhare
Community Advisor
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

cqbeginner
Level 2
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.
Ritesh_M
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

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