Attachments

Issue #3 resolved
Former user created an issue

Line 103 : $mail->AddAttachment($attachment);

$attachment is an array, but but PHPMailer expects to receive 4 string parameters (1 compulsory and 3 optional).

AddAttachment( string $path, [string $name = ""], [string $encoding = "base64"], [string $type = "application/octet-stream"] )

In order to work I had to change that line to: $mail->AddAttachment($attachment['file']);

Comments (1)

  1. Log in to comment