Support alpha blend onto YUV444P9LE and YUV444P10LE (68 and 70).
[dcpomatic.git] / src / lib / send_notification_email_job.cc
index c4d5a65183ca93484e9b225628e46a59d836f3a1..f40e8fefa023e5099ebbe8ff2e92425436880778 100644 (file)
 #include "config.h"
 #include "emailer.h"
 #include "compose.hpp"
-#include <list>
 
 #include "i18n.h"
 
 
 using std::string;
-using std::list;
 using std::shared_ptr;
 
 
@@ -69,13 +67,11 @@ SendNotificationEmailJob::run ()
        auto config = Config::instance ();
 
        if (config->mail_server().empty()) {
-               throw NetworkError (_("No mail server configured in preferences"));
+               throw MissingConfigurationError(_("No outgoing mail server configured in the Email tab of preferences"));
        }
 
        set_progress_unknown ();
-       list<string> to;
-       to.push_back (config->notification_to());
-       Emailer email (config->notification_from(), to, config->notification_subject(), _body);
+       Emailer email (config->notification_from(), { config->notification_to() }, config->notification_subject(), _body);
        for (auto i: config->notification_cc()) {
                email.add_cc (i);
        }