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
20
typedef
struct
lws_smtp_email
{
21
void
*
data
;
22
const
char
*
from
;
23
const
char
*
to
;
24
const
char
*
subject
;
25
const
char
*
body
;
26
}
lws_smtp_email_t
;
27
28
typedef
struct
lws_smtp_client_ops
{
29
int (*
send_email
)(
struct
lws_context *cx,
struct
lws_vhost *vh,
const
lws_smtp_email_t
*email);
30
}
lws_smtp_client_ops_t
;
31
32
#endif
lws_smtp_email_t
struct lws_smtp_email lws_smtp_email_t
lws_smtp_email::subject
const char * subject
Definition
lws-smtp-client.h:24
lws_smtp_client_ops::send_email
int(* send_email)(struct lws_context *cx, struct lws_vhost *vh, const lws_smtp_email_t *email)
Definition
lws-smtp-client.h:29
lws_smtp_client_ops_t
struct lws_smtp_client_ops lws_smtp_client_ops_t
lws_smtp_email::data
void * data
Definition
lws-smtp-client.h:21
lws_smtp_email::to
const char * to
Definition
lws-smtp-client.h:23
lws_smtp_email::from
const char * from
Definition
lws-smtp-client.h:22
lws_smtp_email::body
const char * body
Definition
lws-smtp-client.h:25
lws_smtp_client_ops
Definition
lws-smtp-client.h:28
lws_smtp_email
Definition
lws-smtp-client.h:20
include
libwebsockets
lws-smtp-client.h
Generated on Sat Apr 4 2026 10:15:46 for libwebsockets by
1.13.2