mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Add newline separator to fix wrong attachment sent
Issue: Missing newline between header and attachment Issue seen with email clients viz., AppleMail and YahooMail. Attachment is not renderable. Some clients like Google mail, Samsung mail tolerate the issue. Fix: Added newline between header and attachment. Closes https://github.com/espressif/esp-idf/issues/6098 Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
This commit is contained in:
parent
33e7784806
commit
5fc644ac27
@ -451,7 +451,7 @@ static void smtp_client_task(void *pvParameters)
|
||||
len = snprintf((char *) buf, BUF_SIZE,
|
||||
"Content-Type: image/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... */
|
||||
|
Loading…
Reference in New Issue
Block a user