Missing newlines from CC: and BCC: headers (#817).
[dcpomatic.git] / src / lib / emailer.cc
index 78cbfea8d3fae2fddb67e8162ae98797ecf870fe..df254df24da3f86e8e450e3f68452e2a2681edf6 100644 (file)
@@ -108,11 +108,11 @@ Emailer::send (string server, int port, string user, string password)
              << "From: " << _from << "\r\n";
 
        if (!_cc.empty ()) {
-               email << "Cc: " << address_list (_cc);
+               email << "Cc: " << address_list (_cc) << "\r\n";
        }
 
        if (!_bcc.empty ()) {
-               email << "Bcc: " << address_list (_bcc);
+               email << "Bcc: " << address_list (_bcc) << "\r\n";
        }
 
        string const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";