Fixed content type of attachment

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
This commit is contained in:
Vikram Dattu 2020-11-10 11:57:20 +05:30 committed by bot
parent 81de14b505
commit 458dbaf0f1

View File

@ -449,7 +449,7 @@ 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\"\r\n\n");
ret = write_ssl_data(&ssl, (unsigned char *) buf, len);