caronc / apprise

Apprise - Push Notifications that work with just about every platform!
https://hub.docker.com/r/caronc/apprise
BSD 2-Clause "Simplified" License
11.34k stars 401 forks source link

Notification M365 - E-Mail From #836

Open towerplease opened 1 year ago

towerplease commented 1 year ago

:question: Question

Hi,

as written here, i have set up a E-Mail notification from my monitoring-system (uptime kuma) and it is working as expected. https://github.com/caronc/apprise/wiki/Notify_office365

But, there is no explanation how i can change the "e-mail from". Currently its senden from my adress, but i want it to be from another emailgroup in exchange, where i have sending-permissions.

For me its just not clear how the string needs to be formatted.

o365://{tenant_id}:{account_email}/{client_id}/{client_secret}/ o365://{tenant_id}:{account_email}/{client_id}/{client_secret}/{targets}

o365://{tenant_id}:{account_email}/{client_id}/{client_secret}/{targets}/replyTo?

Can you help me?

Regards

caronc commented 1 year ago

Try:

I never considered group names, so let me know if the above still gives you the desired effect you're looking for.

Edit: i looked through the code and i don't think this will give you the desired effect I identified above. I'll need to create a fix to add the support IF the Office 365 API allows for it

towerplease commented 1 year ago

Hi @caronc

Thank you for your suggestion. I tried the following: o365://{tenant_id}:{account_email}/{client_id}/{client_secret}/{targets}?from={email} but there was no email sent.

It would be very nice, if this feature could be enabled, as for it is described in the "How-To"-page.

Thank you in advance! Regards.

caronc commented 1 year ago

I need to first investigate if it can be done and then implement this. I'll update the documentation once (or if) it can be done