PHP code example of snowfire / beautymail

1. Go to this page and download the library: Download snowfire/beautymail library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

snowfire / beautymail example snippets


Route::get('/test', function()
{
	$beautymail = app()->make(Snowfire\Beautymail\Beautymail::class);
	$beautymail->send('emails.welcome', [], function($message)
	{
		$message
			->from('[email protected]')
			->to('[email protected]', 'John Smith')
			->subject('Welcome!');
	});

});

@