米脂
试着:if (isset($_FILES['uploaded_file']) &&
$_FILES['uploaded_file']['error'] == UPLOAD_ERR_OK) {
$mail->AddAttachment($_FILES['uploaded_file']['tmp_name'],
$_FILES['uploaded_file']['name']);}也可以找到基本的示例。这里.函数定义AddAttachment是:public function AddAttachment($path,
$name = '',
$encoding = 'base64',
$type = 'application/octet-stream')