libwebsockets
Lightweight C library for HTML5 websockets
Loading...
Searching...
No Matches
lws-smtp-client.h
Go to the documentation of this file.
1/*
2 * libwebsockets - small server side websockets and web server implementation
3 *
4 * Copyright (C) 2010 - 2026 Andy Green <andy@warmcat.com>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to
8 * deal in the Software without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 */
16
17#ifndef _LWS_SMTP_CLIENT_H
18#define _LWS_SMTP_CLIENT_H
19
20typedef struct lws_smtp_email {
21 void *data;
22 const char *from;
23 const char *to;
24 const char *subject;
25 const char *body;
27
28typedef struct lws_smtp_client_ops {
29 int (*send_email)(struct lws_context *cx, struct lws_vhost *vh, const lws_smtp_email_t *email);
31
32#endif
struct lws_smtp_email lws_smtp_email_t
const char * subject
int(* send_email)(struct lws_context *cx, struct lws_vhost *vh, const lws_smtp_email_t *email)
struct lws_smtp_client_ops lws_smtp_client_ops_t
const char * to
const char * from
const char * body