File: sioSmtp.h

package info (click to toggle)
ted 2.11-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 11,064 kB
  • ctags: 13,935
  • sloc: ansic: 120,446; makefile: 7,469; sh: 253
file content (70 lines) | stat: -rw-r--r-- 2,369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/************************************************************************/
/*									*/
/*  sioSmtp.[ch]:	Send an e-mail message using the SMTP protocol.	*/
/*  Author:		Robert A. Vonk (rvonk@knoware.nl)		*/
/*			( Adapted by Mark de Does to fit in the sio	*/
/*			framework. )					*/
/*									*/
/*									*/
/*  SimpleOutputStream * sioOutSmtpOpen(char *	mailHost,		*/
/*					char *	mailPort,		*/
/*					char *	From,			*/
/*					char *	To,			*/
/*					char *	Cc,			*/
/*					char *	Bcc,			*/
/*					char *	Subject,		*/
/*					char *	TypeSlashSubtype,	*/
/*					char *	mimeBoundary )		*/
/*	ARGUMENTS:							*/
/*	  mailHost:	The name of the SMTP server.			*/
/*			DEFAULT: "mailhost".				*/
/*	  mailPort:	The name of the service port for smtp.		*/
/*			DEFAULT: "smtp".				*/
/*	  From:		The e-mail address of the sender.		*/
/*			DEFAULT: no default: You must give a non empty	*/
/*			value.						*/
/*	  To:		The e-mail address(es) of the recipient(s).	*/
/*			DEFAULT: no default: You must give a non empty	*/
/*			value.						*/
/*	  Cc:		The e-mail address(es) of the persons that are	*/
/*			carbon copied.					*/
/*			DEFAULT: Do not send copies.			*/
/*	  Bcc:		The e-mail address(es) of the persons that are	*/
/*			blind carbon copied (do not appear in mail	*/
/*			headers).					*/
/*			DEFAULT: Do not send copies.			*/
/*	  Subject:	The subject of the mail message			*/
/*			DEFAULT: No subject.				*/
/*	  mimeType:	The MIME type of the mail message		*/
/*			DEFAULT: No mime type.				*/
/*	  mimeBoundary:	The MIME boundary used to separate parts of the	*/
/*			message.					*/
/*			DEFAULT: No mime boundary.			*/
/*	RETURN VALUES:							*/
/*	  (SimpleOutputStream *)0:	On failure.			*/
/*	  (SimpleOutputStream *)ptr:	On success.			*/
/*									*/
/*									*/
/************************************************************************/

#   ifndef	SIO_SMTP_H
#   define	SIO_SMTP_H

#   include     <appSystem.h>
#   include     <sioGeneral.h>

extern SimpleOutputStream * sioOutSmtpOpen(	const char *	mailHost,
						const char *	mailPort,
						const char *	from,
						const char *	to,
						const char *	cc,
						const char *	bcc,
						const char *	subject,
						const char *	typeSlashSub,
						const char *	mimeBoundary,
						void *		through,
						APP_COMPLAIN	complain );

extern char * sioSmtpGuessMailAddress( void );

#   endif