I absolutely love COPS.
I have been sharing my library with my Dad, who is not too good with technology. Calibre was too complicated for him. So I've set this up on my Windows Home Server with SSL and it works brilliantly. Can download my mobi files from anywhere now.
The last thing I'm trying to get working is the email function. I have absolutely no programming experience or php knowledge but am trying my best...
I've managed to get the icon to come up in my web page to email a book but always get a NOK. bad configuration error.
My config_local.php currently looks like this
Code:
<?php
if (!isset($config))
$config = array();
/*
* The directory containing calibre's metadata.db file, with sub-directories
* containing all the formats.
* BEWARE : it has to end with a /
*/
$config['calibre_directory'] = 'Z:/ServerFolders/Books/Kindle Books/';
/*
* Catalog's title
*/
$config['cops_title_default'] = "Library";
/*
* use URL rewriting for downloading of ebook in HTML catalog
* See README for more information
* 1 : enable
* 0 : disable
*/
$config['cops_use_url_rewriting'] = "0";
$config['cops_mail_configuration'] = array( "smtp.host" => "smtp.gmail.com",
"smtp.username" => "myusername@gmail.com",
"smtp.password" => "password",
"smtp.secure" => "ssl",
"address.from" => "cops@slucas.fr"
);
$config['cops_mail_configuration'] = NULL;
But I can't quite seem to get it working. I'd really appreciate some help as this is the first time I've ever used any webpage stuff. There's definitely a beer on it's way for the author once I get it working.