Lines Matching defs:body
25 smtp_send_mail("sender", "recipient", "subject", "body", my_smtp_result_fn,
73 /** TCP poll timeout while sending message body, reset after every
76 /** TCP poll timeout while waiting for confirmation after sending the body.
79 /** TCP poll timeout while not sending the body.
174 BDH_SENDING, /* Serving the user function generating body content */
232 /** struct keeping the body and state of an smtp session */
238 /** helper buffer for transmit, not used for sending body */
253 /** this is the body of the mail to be sent */
254 const char* body;
255 /** this is the length of the body to be sent */
257 /** amount of data from body already sent */
493 /* check that body conforms to RFC:
494 * - convert all single-CR or -LF in body to CRLF
513 if (smtp_verify(s->body, s->body_len, 0) != ERR_OK) {
577 * @param body email body (must be NULL-terminated)
585 smtp_send_mail(const char* from, const char* to, const char* subject, const char* body,
592 size_t body_len = strlen(body);
617 s->body = sbody = ssubject + subject_len + 1;
624 MEMCPY(sbody, body, body_len + 1);
634 * Same as smtp_send_mail, but doesn't copy from, to, subject and body into
641 const char* body, smtp_result_fn callback_fn, void* callback_arg)
666 s->body = body;
667 len = strlen(body);
704 err = smtp_send_mail_static(req->from, req->to, req->subject, req->body,
707 err = smtp_send_mail(req->from, req->to, req->subject, req->body,
1173 /** Prepare header of body */
1213 /** If in state SMTP_BODY, try to send more body data */
1234 err = altcp_write(pcb, &s->body[s->body_sent], (u16_t)send_len, TCP_WRITE_FLAG_COPY);
1247 /* the whole body has been written, write last line */
1248 LWIP_DEBUGF(SMTP_DEBUG_STATE, ("smtp_send_body: body completely written (%d bytes), appending end-of-body\n",
1253 LWIP_DEBUGF(SMTP_DEBUG_STATE, ("smtp_send_body: end-of-body written, changing state to %s\n",
1429 /* try to stream-send body data right now */
1465 /** Same as smtp_send_mail_static, but uses a callback function to send body data
1500 s->body = NULL;
1522 if((res = smtp_send_bodyh_data(pcb, (const char **)&s->body, &s->body_len))
1538 s->body = bdh->exposed.buffer;
1542 ((res = smtp_send_bodyh_data(pcb, (const char **)&s->body, &s->body_len)) == BDHALLDATASENT)