CoasterKaty / PHPGraphMailer

PHP Class to send email through Microsoft Graph API
https://katystech.blog/2020/08/php-graph-mailer/
GNU General Public License v2.0
33 stars 18 forks source link

Refactor MessageJSON processing increase Message handling and add Event handling #12

Closed imcfarla2003 closed 1 year ago

imcfarla2003 commented 1 year ago

Refactor Message JSON processing into a function so it can be used in multiple places Add getFolderId to get the ID of a folder within a mailbox Add getMessage to allow getting a specific message Add reply to create a reply to a specific message Add updateMessage to allow changing the status of a message Add sendPatchRequest to support updateMessage Add getEvents to allow searching for events Add createEvent, updateEvent and cancelEvent to handle creating, modifying and cancelling events Update getMessages to look in folders, take a filter and optionally get attachments Update deleteMessage to handle messages in folders Update sendMail to optionally delete the message after sending and return true or to return the messageId if successful

imcfarla2003 commented 1 year ago

I have been using your code to reimplement EWS handling in my app. These are the additions that I have made to allow me to recreate the same functionality. The code has been in use daily since October 2022 so it is well tested.