PHP code example of sapistudio / sapimail
1. Go to this page and download the library: Download sapistudio/sapimail 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/ */
sapistudio / sapimail example snippets
use SapiStudio\SapiMail\ImapClient;
$IMAP = ImapClient::make()->initConnection($host)->loginToMailbox($user,$password);
use SapiStudio\SapiMail\Smtp;
$IMAP = Smtp::make($host,$user,$pass,$port)->connect()