artdaq_mfextensions  v1_03_05
curl_send_message.h
Go to the documentation of this file.
1 #ifndef CURL_SEND_MESSAGE_H
2 #define CURL_SEND_MESSAGE_H 1
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 
21 struct upload_status {
22  size_t pos;
23  size_t size;
24  const char* payload;
25 };
26 
36 void send_message(const char* dest, const char* to[], size_t to_size, const char* from, const char* payload,
37  size_t payload_size);
38 
51 void send_message_ssl(const char* dest, const char* to[], size_t to_size, const char* from, const char* payload,
52  size_t payload_size, const char* username, const char* pw, int disableVerify);
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif
size_t size
Size of payload.
void send_message_ssl(const char *dest, const char *to[], size_t to_size, const char *from, const char *payload, size_t payload_size, const char *username, const char *pw, int disableVerify)
Sends a message to the given SMTP server, using SSL encryption.
void send_message(const char *dest, const char *to[], size_t to_size, const char *from, const char *payload, size_t payload_size)
Sends a message to the given SMTP server.
const char * payload
payload string
size_t pos
Current position within payload.
Structure to track progress of upload in cURL send function.