Macros | Functions | Variables
smtp-mime.c File Reference
#include <stdio.h>
#include <string.h>
#include <curl/curl.h>
Include dependency graph for smtp-mime.c:

Go to the source code of this file.

Macros

#define CC   "<info@example.org>"
 
#define FROM   "<sender@example.org>"
 
#define TO   "<addressee@example.net>"
 

Functions

int main (void)
 

Variables

static const char * headers_text []
 
static const char inline_html []
 
static const char inline_text []
 

Macro Definition Documentation

#define CC   "<info@example.org>"

Definition at line 41 of file smtp-mime.c.

#define FROM   "<sender@example.org>"

Definition at line 39 of file smtp-mime.c.

#define TO   "<addressee@example.net>"

Definition at line 40 of file smtp-mime.c.

Function Documentation

int main ( void  )

Definition at line 69 of file smtp-mime.c.

Variable Documentation

const char* headers_text[]
static
Initial value:
= {
"Date: Tue, 22 Aug 2017 14:08:43 +0100",
"To: " TO,
"From: " FROM " (Example User)",
"Cc: " CC " (Another example User)",
"Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
"rfcpedant.example.org>",
"Subject: example sending a MIME-formatted message",
NULL
}
#define CC
Definition: smtp-mime.c:41
#define TO
Definition: smtp-mime.c:40
#define FROM
Definition: smtp-mime.c:39

Definition at line 43 of file smtp-mime.c.

const char inline_html[]
static
Initial value:
=
"<html><body>\r\n"
"<p>This is the inline <b>HTML</b> message of the e-mail.</p>"
"<br />\r\n"
"<p>It could be a lot of HTML data that would be displayed by "
"e-mail viewers able to handle HTML.</p>"
"</body></html>\r\n"

Definition at line 60 of file smtp-mime.c.

const char inline_text[]
static
Initial value:
=
"This is the inline text message of the e-mail.\r\n"
"\r\n"
" It could be a lot of lines that would be displayed in an e-mail\r\n"
"viewer that is not able to handle HTML.\r\n"

Definition at line 54 of file smtp-mime.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:17