PHP code example of famelo / messaging
1. Go to this page and download the library: Download famelo/messaging 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/ */
famelo / messaging example snippets
$mail = new \Famelo\Messaging\Message();
$mail->setFrom(array('[email protected]' => 'Me :)'))
->setTo(array('[email protected]'))
->setSubject('How are you?')
->setMessage('My.Package:HelloWorld')
->assign('someVariable', 'Hello World')
->send();