Jan C.:
> Hello,
> I'm using smtp-source as a test smtp-client and I've realized that it
> is not adding the "MIME-Version: 1.0" to the generated email. Hence,
> some email clients do not display the received message correctly. My
> suggestion would be to add the following line in the smtp-source.c
> file, in the "static void data_done(int unused, char *context)"
> function
>
> smtp_printf(session->stream, "MIME-Version: 1.0");
If you want to send messages with rich content, YOU need to provide
MIME-Version, Content-Type, and Content-Transfer-Encoding headers.
It makes no sense for smtp-source to provide 1/3 of this information.
To send pre-formatted messages you can use the -F option, as
documented.
-F file
Send the pre-formatted message header and body in the specified
file, while prepending '.' before lines that begin with '.', and
while appending CRLF after each line.
Wietse