Sinevia / laravel-mail by sinevia

Laravel's mail transport for Sinevia Web Services Mail
87
0
2
Package Data
Maintainer Username: sinevia
Package Create Date: 2018-08-11
Package Last Update: 2022-08-29
Language: PHP
License: proprietary
Last Refreshed: 2024-04-26 03:17:17
Package Statistics
Total Downloads: 87
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Laravel Mail

Laravel package for sending mail via the Sinevia Web Serices API

Installation

Install the package via composer

composer require sinevia/laravel-mail

Configuration

After publishing, add and fill the next values to your .env file

MAIL_DRIVER=sinevia_mail

Add and fill the next values to your config/services file

'sinevia_mail' => [
    'domain' => 'http://ws.sinevia.com/mails/mail-send',
    'secret' => 'APIKEY',
],

How to Use?

\Mail::raw('EMAILS WORKING TEXT', function ($message) {
    $message->from('mail@server.com','From Name');
    $message->to('to@server.com','To Name');
    $message->cc('cc@server.com','Cc Name');
    $message->bcc('bcc@server.com','Bcc Name');
    $message->subject("EMAILS WORKING SUBJECT");
});

// check for failures
if (\Mail::failures()) {
    dd('FAILED');
}
        
dd('SUCCESS');