X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Femailer.cc;fp=src%2Flib%2Femailer.cc;h=71b29db1e06acb42c0fc359ced67bd589197bfee;hb=422be0eece2bf6ee80db1d3c21553cd82efff789;hp=5e645457d32f8ed7b99ca4126ba14fb55767960d;hpb=e34db1b3cdb5bce5ddcb112ee03664a4e463032a;p=dcpomatic.git diff --git a/src/lib/emailer.cc b/src/lib/emailer.cc index 5e645457d..71b29db1e 100644 --- a/src/lib/emailer.cc +++ b/src/lib/emailer.cc @@ -103,7 +103,7 @@ Emailer::send (string server, int port, string user, string password) boost::posix_time::time_duration offset = local_now - utc_now; sprintf (date_buffer + strlen(date_buffer), "%s%02d%02d", (offset.hours() >= 0 ? "+" : "-"), abs (offset.hours()), offset.minutes()); - SafeStringStream email; + locked_stringstream email; email << "Date: " << date_buffer << "\r\n" << "To: " << address_list (_to) << "\r\n"