-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send email on behalf of #126
Comments
Have you tried sending the email as normal, but setting the From: address to the desired individual? I haven't got access to a business MS365 org right now, so can't test this. |
I've tried it out, but no success. |
See if this helps: https://docs.microsoft.com/en-us/graph/outlook-create-send-messages#setting-the-from-and-sender-properties You can update the properties of an (unsent) email object with the Also try asking on Stack Overflow, make sure to use the |
I tried modifying the
and the
But it fails at the the second step in the code below inside the
with the error:
|
Based on your comment about looking at the I then changed tack and have now tried adding an extra method to the
which is a modified copy of the Also created a modified copy of
My understanding is that this will build a list that can be passed through to the object in the Shared mailbox.
Debugging
It would be great if someone with better knowledge than me could work on adding extra methods to set the "sender", as this would enhance the usability of this package. |
KISS solution for anyone coming across this issue. Based on @hongooi73's tip to use the
You can write a nested list (to go into the ellipsis above) so the method will send a properly formatted payload to modify the draft email like this:
|
Can I please follow up on this and ask if I can use the
to add a different "reply to" address? (Just to make sure, I want to send an email on my behalf but with another address for which I have permission to do so. But I would like the recipient to hit reply and send the email to my own address. Is that possible?). Thanks! |
I have got my company's IT team to set up a Shared Mailbox.
I can use
get_business_outlook()
, and then the methodscreate_email()
andsend
() successfully.Now, IT have created some other email addresses and have set them up as "Mail enabled security group" so that these can be used to send emails via the Shared Mailbox.
However, I cannot find any documentation on how to send on behalf of the Shared Mailbox.
I want the sender to be the individual email address and not the email address of the Shared Mailbox.
The use case is that there will be multiple Docker Containers running in Azure that will have their own email addresses.
The architecture that has been defined is for all these to send via the one Shared Mailbox.
The text was updated successfully, but these errors were encountered: