PHP code example of alexpcooper / newsletters-to-kindle
1. Go to this page and download the library: Download alexpcooper/newsletters-to-kindle 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/ */
alexpcooper / newsletters-to-kindle example snippets
letter2kindle = new newsletters2kindle();
$newsletter2kindle->kindle_email = '[email protected]';
$newsletter2kindle->imap_email = '[email protected]';
$newsletter2kindle->imap_user = '[email protected]';
$newsletter2kindle->imap_pass = 'emailpassword';
$newsletter2kindle->imap_host = 'imap.host.com';
$newsletter2kindle->imap_port = 993;
$newsletter2kindle->imap_dir = 'Inbox';
$newsletter2kindle->checkMail();
$newsletter2kindle->debug = true; // false by default or when not specified
$newsletter2kindle->delete_mail_after = false; // true by default or when not specified