mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
Merge branch 'bugfix/smtp_client_attachment_newline' into 'master'
Add newline separator to fix wrong attachment sent Closes IDFGH-4240 See merge request espressif/esp-idf!11177
This commit is contained in:
@ -449,9 +449,9 @@ static void smtp_client_task(void *pvParameters)
|
||||
|
||||
/* Attachment */
|
||||
len = snprintf((char *) buf, BUF_SIZE,
|
||||
"Content-Type: image/image/png;name=esp_logo.png\n"
|
||||
"Content-Type: image/png;name=esp_logo.png\n"
|
||||
"Content-Transfer-Encoding: base64\n"
|
||||
"Content-Disposition:attachment;filename=\"esp_logo.png\"\n");
|
||||
"Content-Disposition:attachment;filename=\"esp_logo.png\"\r\n\n");
|
||||
ret = write_ssl_data(&ssl, (unsigned char *) buf, len);
|
||||
|
||||
/* Image contents... */
|
||||
|
Reference in New Issue
Block a user