00001 /* 00002 Copyright (C) by Christian Gosch. 00003 00004 This file is part of w3server, a very small HTTP(-subset) server. 00005 00006 w3server is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 Foobar is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with Foobar; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00025 #ifndef W3SMTP_H 00026 #define W3SMTP_H 00027 00028 #include <w3types.h> 00029 00038 typedef struct { 00039 char *recipient; 00040 char *sender; 00041 char *data; 00042 } w3Mail; 00043 00047 w3Mail *w3CreateMail (char* rcpt, char *sender, char *data); 00048 00052 boolean w3DestroyMail (w3Mail *mail); 00053 00057 boolean w3SendMail (w3Mail *mail, const char *mailer, int port); 00058 00069 boolean w3SendMailFile (const char* path); 00075 #endif 00076 00077 00078 00079 00080 00081 00082 00083