I am attempting to set up PHPMailer so that one of our clients is able to have the automatically generated emails come from their own account. I have logged into their Offic
You need an App Password and multi-factor authentication enabled to able to send mails from third party applications using office365 stmp. Google it for further information