SMTP :: boolean delattach ( [ mxed name ] )

Returns TRUE if has been successfully deleted, FALSE if not. mxed name default value are: boolean true (delete all attachments) Example:

$mail = new SMTP;

$mail->AttachFile('/path/test.txt') OR die('error 1');
$mail->AttachFile('/path/filename.zip', 'archive.zip') OR die('error 2');

// delete only a file from attachments
$mail->DelAttach('test.txt') OR die('error 3');
$mail->DelAttach('archive.zip') OR die('error 4');

// also, you can delete all attachments
$mail->DelAttach();

[ Comments ] Last update: Friday, June 30, 2006