Send Email With Exchange Web Services in Laravel
Published on by Paul Redmond
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.
use Raju\EWSMail\ExchangeMailServer; ExchangeMailServer::sendEmail( [ 'name' => 'Raju at LHG', 'email' => 'raju@lhgraphics.com' ], [ 'subject' => 'Mail From Package', 'body' => 'Message Body' ]);
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.
This package was submitted to our Laravel News Links section. Links is a place the community can post packages and tutorials around the Laravel ecosystem. Follow along on Twitter @LaravelLinks