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

Go to the source code of this file.

Classes

struct  upload_status
 

Macros

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

Functions

int main (void)
 
static size_t payload_source (void *ptr, size_t size, size_t nmemb, void *userp)
 

Variables

static const char * payload_text []
 

Macro Definition Documentation

◆ CC

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

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

◆ FROM

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

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

◆ TO

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

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

Function Documentation

◆ main()

int main ( void  )

Definition at line 85 of file smtp-mail.c.

◆ payload_source()

static size_t payload_source ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  userp 
)
static

Definition at line 63 of file smtp-mail.c.

Variable Documentation

◆ payload_text

const char* payload_text[]
static
Initial value:
= {
"Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n",
"To: " TO "\r\n",
"From: " FROM " (Example User)\r\n",
"Cc: " CC " (Another example User)\r\n",
"Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
"rfcpedant.example.org>\r\n",
"Subject: SMTP example message\r\n",
"\r\n",
"The body of the message starts here.\r\n",
"\r\n",
"It could be a lot of lines, could be MIME encoded, whatever.\r\n",
"Check RFC5322.\r\n",
NULL
}

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

FROM
#define FROM
Definition: smtp-mail.c:39
TO
#define TO
Definition: smtp-mail.c:40
CC
#define CC
Definition: smtp-mail.c:41


rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sun May 15 2022 02:25:02