    SMTP :: boolean attachsource ( string source, string name [, string mimetype [, string disposition [, string encoding ]]] )

    Returns TRUE if has been successfully attached, FALSE if not.

    Default values are:
    string mimetype: autodetect
    string disposition: attachment
    string encoding: base64

    Example of mimetype value is: image/gif

    string disposition possible values are: attachment, inline
    string encoding possible values are: 7bit, 8bit, quoted-printable, base64

    Example:

    $mail = new SMTP;

    $mail->AttachSource('text message', 'file.txt') OR die('error');

    [ Comments ]

    Last update: Wednesday, June 21, 2006