SenderSuite bundle lets you to send transactional emails from your Laravel application through your SenderSuite account easily.
In order to use this bundle, you need to have a SenderSuite account, which you can create one here: http://sendersuite.com/#signup
To get a SenderSuite connection instance:
$ssApi = IoC::resolve('sendersuite');
By default SenderSuite bundle uses production
connection configuration setup on bundle configuration. You can create as many connection configurations as you like and use any of your SenderSuite connection configurations by passing the configuration to sendEmail
method. Here is an example:
$ssApi = IoC::resolve('sendersuite');
$ssApi->sendEmail('mert.hurturk@gmail.com', 'Subject', 'HTML Body', 'Text Body');
sendEmail
method returns true if email is successfully sent, otherwise returns false and fires sendersuite.email.error
with three parameters:
- An array containing the parameters passed to
sendEmail
method - Configuration array
- Exception object
However, if you pass invalid configuration key to sendEmail method, it throws an exception.
SenderSuite is a transactional email delivery gateway for both websites and applications.
- Homepage: http://sendersuite.com