Laravel Exchange Web Services Email is a package by Raju at LHG for sending Email via Microsoft Exchange Web Services (EWS) easily. The Laravel package is a wrapper around the PHP EWS composer package.
1use Raju\EWSMail\ExchangeMailServer;23ExchangeMailServer::sendEmail(4 [5 'name' => 'Raju at LHG',6 'email' => 'firstname.lastname@example.org'7 ],8 [9 'subject' => 'Mail From Package',10 'body' => 'Message Body'11 ]12);
This is a small package, with one class responsible for sending emails via EWS—check out the ExchangeMailServer class for how this is built. I would also like to point out that this package requires the SOAP PHP extension to work, which is a dependency of the PHP EWS package.
To use this package, you'll need to configure your EWS host, username, password, and client version.
You can learn more about this package, get full installation instructions, and view the source code on GitHub.