OJS 2.4.8.1 email attachment not recived

iam using ojs 2.4.8.1 with phpmailer when i send the email with attachment i receive the email without attachment
iam using this cod :

foreach ((array) $this->getAttachments() as $attachmentInfo) {
			$mail->AddAttachment(
				$attachmentInfo['path'],
				$attachmentInfo['filename'],
				'base64',
				$attachmentInfo['content-type']
			);
		}

OJS 2.4.8-1 doesn’t ship with PHPMailer support by default. What did you do to add it in and what is the context for this code?