Sfoglia il codice sorgente

修复一处条件编译没加的问题

WKJay 5 anni fa
parent
commit
e9ed2a7f06
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/smtp_client.c

+ 3 - 0
src/smtp_client.c

@@ -703,6 +703,7 @@ static int smtp_set_sender_receiver(void)
     return 0;
 }
 
+#ifdef SMTP_CLIENT_USING_ATTACHMENT
 /**
  * Name:    smtp_send_content
  * Brief:   smtp发送附件
@@ -762,6 +763,8 @@ static void smtp_send_attachment(void)
         smtp_write((uint8_t *)("--" SMTP_MAIL_BOUNDARY "--\r\n"), strlen("--" SMTP_MAIL_BOUNDARY "--\r\n"));
 }
 
+#endif
+
 /**
  * Name:    smtp_send_content
  * Brief:   smtp发送邮件内容