Laravel

Laravel is a PHP framework. Laravel natively integrates Swiftmailer to quickly and easily send your emails. You just have to set your SMTP credentials to send your email with Tipimail. You find more information on the official documentation of Laravel

Framework configuration

Create and edit the file "config/email.php" on the config folder of your Laravel project.

				return [
					'driver' => env('MAIL_DRIVER', 'smtp'),
					'host' => env('MAIL_HOST', 'smtp.tipimail.com'),
					'port' => env('MAIL_PORT', 587),
					'from' => ['address' => null, 'name' => null],
					'encryption' => 'tls',
					'username' => env('tipimail smtp username'),
					'password' => env('tipimail smtp password'),
					'sendmail' => '/usr/sbin/sendmail -bs',
					'pretend' => false,
				];
			

Send your email

You just have to use the Laravel native function to send your emails

				Mail::send('emails.welcome', ['key' => 'value'], function($message)
				{
					$message->to('foo@example.com', 'John Smith')->subject('Welcome!');
				});