This is a search engine friendly CGI program that outputs help documents.
The LufDoc (Live User Fed Documentation) comment system will be implemented soon.

PSP Help Doc Indexer System

(Version 1.4.1)


Declaration:

function smtp_attach(mp: SMTPMessage; const fname, ftype: string): boolean;

Arguments:

mp Message handle
fname Local file path
ftype File MIME type, e.g. 'text/html', 'image/gif'

Description:

This function attaches a file to a message. Message must have been created by smtp_message function call. This function also automatically sets message content-type to multipart/mixed, so you'll have to set content-type of the text part by smtp_set_text_type call.

Returns:

TRUE on success, FALSE on error (for example if file does not exist or message handle is not initialized).

Usage:

smtp_attach(mp, 'myimage.jpg', 'image/jpeg');

See also:

smtp_free, smtp_get_header, smtp_message, smtp_put_header, smtp_send, smtp_set_header, smtp_set_text_type.

PSP Help documents