Skip to content

Conversation

@kmeers-kuleuven
Copy link

Description
This PR introduces a new function, send_deferred, to the ms_outlook_email R6 class that lets you schedule an e-mail for delivery at a specified future time. Internally, it sets the MAPI deferred-delivery property (SystemTime 0x3FEF) on a draft message and then calls send().

Usage example

library(Microsoft365R)
outlook <- get_business_outlook()

msg <- outlook$create_email()$
     set_body("Hello from R")$
     set_recipients(to="person@contoso.com")$
     set_subject("example email")

msg$send_deferred("2026-02-03 16:30:00", tz = "Europe/Brussels")

@kmeers-kuleuven
Copy link
Author

@microsoft-github-policy-service agree company="KU Leuven"

@microsoft-github-policy-service
Copy link
Contributor

@kmeers-kuleuven the command you issued was incorrect. Please try again.

Examples are:

@microsoft-github-policy-service agree

and

@microsoft-github-policy-service agree company="your company"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant