View Single Post
Old 05-19-2017, 11:56 PM   #1533
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
To make COPS able to send e-mails you have to edit or insert some lines in config_local.php:
Code:
    /*
     * Enable and configure Send To Kindle (or Email) feature.
     *
     * Don't forget to authorize the sender email you configured in your Kindle's  Approved Personal Document E-mail List.
     *
     * If you want to use a simple smtp server (provided by your ISP for example), you can configure it like that :
     * $config['cops_mail_configuration'] = array( "smtp.host"     => "smtp.free.fr",
     *                                           "smtp.username" => "",
     *                                           "smtp.password" => "",
     *                                           "smtp.secure"   => "",
     *                                           "address.from"  => "cops@slucas.fr"
     *                                           );
     *
     * For Gmail (ssl is mandatory) :
     * $config['cops_mail_configuration'] = array( "smtp.host"     => "smtp.gmail.com",
     *                                           "smtp.username" => "YOUR GMAIL ADRESS",
     *                                           "smtp.password" => "YOUR GMAIL PASSWORD",
     *                                           "smtp.secure"   => "ssl",
     *                                           "address.from"  => "cops@slucas.fr"
     *                                           );
     */
    $config['cops_mail_configuration'] = NULL;
So change NULL to one of the examples filled in with your info.

Success!!
Yep...success!!

I think it's called RTFM, right?, LoL.

Thanks for pointing that out; all is good, but only after a few other problems were taken care of.

FYI, and others with QNAP, there is a basic Virtual Host setup already in Control Panel > Web Server. At least it is in the latest QTS V4.3.3. It may have been there in previous versions, but I never saw it.

Anyway, it is a truly basic setup, with minimal options. But that gave me an excellent way to start a more complete Virtual Host setup. After a lot of trial-and-error, I made it work using .htaccess/.htpasswd the way I wanted.

All is good. It's Miller (Actually Corona) time!
MontyJ is offline   Reply With Quote