diff --git a/examples/send_multiple_file_upload b/examples/send_multiple_file_upload new file mode 100644 index 000000000..c7cd6581c --- /dev/null +++ b/examples/send_multiple_file_upload @@ -0,0 +1,51 @@ +setFrom('from@example.com', 'First Last'); + $mail->addAddress('whoto@example.com', 'John Doe'); + $mail->Subject = 'PHPMailer file sender'; + $mail->msgHTML("My message body"); + //Attach multiple files one by one + for($ct=0;$ctaddAttachment($uploadfile, $filename); + } + } + if (!$mail->send()) { + $msg = "Mailer Error: " . $mail->ErrorInfo; + } else { + $msg = "Message sent!"; + } + } else { + $msg = 'Failed to move file to ' . $uploadfile; + } +} +?> + + + + + PHPMailer Upload + + + +
+ Send this file: > + +
+ + +