src/mfextensions/Destinations/detail/curl_send_message.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  upload_status
 Structure to track progress of upload in cURL send function. More...

Defines

#define CURL_SEND_MESSAGE_H   1

Functions

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.
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.

Detailed Description

This file wraps the C-language cURL SMTP functions Code is from https://curl.haxx.se/libcurl/c/example.html

Definition in file curl_send_message.h.


Function Documentation

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.

Parameters:
dest URL of SMTP server, in form smtp://[HOST]:[PORT]
to Array of strings containing destination addresses
to_size Size of the to array (must be >0!)
from Address that the email is originating from
payload Message payload, including RFC5322 headers
payload_size Size of the message payload, in bytes

Definition at line 28 of file curl_send_message.c.

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.

Parameters:
dest URL of SMTP server, in form smtps://[HOST]:[PORT]
to Array of strings containing destination addresses
to_size Size of the to array (must be >0!)
from Address that the email is originating from
payload Message payload, including RFC5322 headers
payload_size Size of the message payload, in bytes
username Credentials for logging in to SMTPS server
pw Credentials for logging in to SMTPS server (Recommend empty string)
disableVerify Disable verification of host certificate (Recommend 0)

Definition at line 74 of file curl_send_message.c.


Generated on 23 Oct 2018 for artdaq_mfextensions by  doxygen 1.6.1