OJS email attachment not recived

iam using ojs 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) {

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?