Closed 0x3b0c closed 7 years ago
sorry not getting time. will look at it as soon as get some time.
I've got the same problem too with attachments.
I think the problem can be solved editing file smtp.c and replacing:
snprintf(buf, bufsz,"--
(or something similar that prints --
at the beginning of a line
with
snprintf(buf, bufsz,"\r\n--
This should be done whenever there is a snprintf immediatly followed by an snprintf that writes a Content-Type (about 5-6 times). I would like to try and test it but I just can't compile mailsend because it takes me too much time to setup the environment
Although I could not reproduce the original issue with gmail, I updated develop branch with the code as you suggested which also works with gmail. If possible, please test it with your SMTP server to see if the issue is fixed.
Thanks.
In multipart mail a CRLF is missing before the boundary separator, this is causing different problems in many email clients / webmail. (Some are reporting empty mails other missing attachments).
example:
it should be: