/home/desid573/public_html/gcdriver/PHPMailer/examples
NameSizeModeActions
images/-0755rm
scripts/-0755rm
styles/-0755rm
code_generator.phps274630644editdlrm
contents.html6450644editdlrm
contentsutf8.html8300644editdlrm
exceptions.phps14820644editdlrm
gmail.phps21650644editdlrm
gmail_xoauth.phps26990644editdlrm
index.html62890644editdlrm
mail.phps10630644editdlrm
mailing_list.phps22970644editdlrm
pop_before_smtp.phps21960644editdlrm
sendmail.phps11350644editdlrm
send_file_upload.phps16850644editdlrm
send_multiple_file_upload.phps16060644editdlrm
signed-mail.phps42030644editdlrm
smtp.phps18750644editdlrm
smtp_check.phps19070644editdlrm
smtp_no_auth.phps17430644editdlrm
ssl_options.phps20760644editdlrm
Edit: /home/desid573/public_html/gcdriver/PHPMailer/examples/send_multiple_file_upload.phps (1606B)
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; $ct < count($_FILES['userfile']['tmp_name']); $ct++) { $uploadfile = tempnam(sys_get_temp_dir(), sha1($_FILES['userfile']['name'][$ct])); $filename = $_FILES['userfile']['name'][$ct]; if (move_uploaded_file($_FILES['userfile']['tmp_name'][$ct], $uploadfile)) { $mail->addAttachment($uploadfile, $filename); } else { $msg .= 'Failed to move file to ' . $uploadfile; } } if (!$mail->send()) { $msg .= "Mailer Error: " . $mail->ErrorInfo; } else { $msg .= "Message sent!"; } } ?> PHPMailer Upload
Select one or more files: