mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
sendmail allow array attachment
This commit is contained in:
parent
ef63b21d99
commit
e2983e3f1b
@ -402,10 +402,15 @@ void xsend_message_txt(char *msg) {
|
|||||||
g_client->print(F("\r\n--frontier\r\n"));
|
g_client->print(F("\r\n--frontier\r\n"));
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
if (*msg=='&') {
|
||||||
|
msg++;
|
||||||
|
attach_Array(msg);
|
||||||
|
} else {
|
||||||
g_client->print(F("--frontier\r\n"));
|
g_client->print(F("--frontier\r\n"));
|
||||||
g_client->print(F("Content-Type: text/plain\r\n\r\n"));
|
g_client->print(F("Content-Type: text/plain\r\n\r\n"));
|
||||||
g_client->println(msg);
|
g_client->println(msg);
|
||||||
g_client->print(F("\r\n--frontier\r\n"));
|
g_client->print(F("\r\n--frontier\r\n"));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -439,6 +444,8 @@ void attach_File(char *path) {
|
|||||||
g_client->print(F("\r\n--frontier\r\n"));
|
g_client->print(F("\r\n--frontier\r\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // defined(USE_SCRIPT_FATFS) && defined(USE_SCRIPT)
|
||||||
|
|
||||||
float *get_array_by_name(char *name, uint16_t *alen);
|
float *get_array_by_name(char *name, uint16_t *alen);
|
||||||
void flt2char(float num, char *nbuff);
|
void flt2char(float num, char *nbuff);
|
||||||
|
|
||||||
@ -473,8 +480,6 @@ void attach_Array(char *aname) {
|
|||||||
g_client->print(F("\r\n--frontier\r\n"));
|
g_client->print(F("\r\n--frontier\r\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // defined(USE_SCRIPT_FATFS) && defined(USE_SCRIPT)
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user