Move default config options into their own tab; support user/password for SMTP TLS...
[dcpomatic.git] / src / tools / dcpomatic.cc
index 2a0cb9cd36935a1ae53d67fafd60e8d92578b7c6..72fb56b4f552d216a6a7a65e1766064bf66f6935 100644 (file)
@@ -53,6 +53,7 @@
 #include "lib/exceptions.h"
 #include "lib/cinema.h"
 #include "lib/kdm.h"
+#include "lib/send_kdm_email_job.h"
 
 using std::cout;
 using std::string;
@@ -244,6 +245,7 @@ class Frame : public wxFrame
 public:
        Frame (wxString const & title)
                : wxFrame (NULL, -1, title)
+               , _hints_dialog (0)
                , _servers_list_dialog (0)
        {
 #ifdef DCPOMATIC_WINDOWS_CONSOLE               
@@ -458,7 +460,9 @@ private:
                        if (d->write_to ()) {
                                write_kdm_files (film, d->screens (), d->dcp (), d->from (), d->until (), d->directory ());
                        } else {
-                               email_kdms (film, d->screens (), d->dcp (), d->from (), d->until ());
+                               JobManager::instance()->add (
+                                       shared_ptr<Job> (new SendKDMEmailJob (film, d->screens (), d->dcp (), d->from (), d->until ()))
+                                       );
                        }
                } catch (KDMError& e) {
                        error_dialog (this, e.what ());