cutelyst / simple-mail

An SMTP library written in C++ for Qt. Allows applications to send emails (MIME with text, html, attachments, inline files, etc.) via SMTP. Supports SSL and SMTP authentication.
GNU Lesser General Public License v2.1
213 stars 64 forks source link

Feature/mime type for passing file via stream #65

Closed michaelernst closed 3 years ago

michaelernst commented 3 years ago

When storing files not on disk but e.g. in DB, passing files as stream is much easier.

Since MimeInlineFile sets an additional header adding an additional ctor for streams, also setting this header, is much robust than using MimeFile and doing this all by hand.

dantti commented 3 years ago

This change breaks API and ABI, please add a new constructor.

michaelernst commented 3 years ago

Added new ctor instead of exanding the existing one