client.h
来自「C语言实现的一个简易的SMPT服务器代码」· C头文件 代码 · 共 40 行
H
40 行
/*
* Embedded SMTP Client Header
*
* ./software/ch5/emsmtpd/client.h
*
* mtj@cogitollc.com
*
* Copyright 2001,2002 M. Tim Jones <mtj@cogitollc.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2, or (at your option) any
* later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
*/
#define MAX_SUBJECT 80
#define MAX_SNDR 80
#define MAX_RCPT 80
#define MAX_CONTENT 80
#define MAX_SPECIAL 256
struct mailHeader {
char subject[MAX_SUBJECT+1];
char sender[MAX_SNDR+1];
char recipient[MAX_RCPT+1];
char specialHeaders[MAX_SPECIAL+1];
char contentType[MAX_CONTENT+1];
char *contents;
};
int sendMail(struct mailHeader *);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?