Hi my websits is http://bachfestivalcanarias.com/concurso.html wen i try to sen a form it says "please set a message". Can you see what is going wrong? I recieve the messages.
Also i need to attach mora than on file. How can i do that?
Thanks !!!
3 replies · opened Jan 23, 2017
Hi my websits is http://bachfestivalcanarias.com/concurso.html wen i try to sen a form it says "please set a message". Can you see what is going wrong? I recieve the messages.
Also i need to attach mora than on file. How can i do that?
Thanks !!!
Hello,
if ( isset( $_FILES['template-contactform-file'] ) && $_FILES['template-contactform-file']['error'] == UPLOAD_ERR_OK ) {
$mail->IsHTML(true);
$mail->AddAttachment( $_FILES['template-contactform-file']['tmp_name'], $_FILES['template-contactform-file']['name'] );
}and replace it with:
if ( isset( $_FILES['template-contactform-file'] ) ) {
$mail->IsHTML(true);
//Attach multiple files one by one
for ($ct = 0; $ct addAttachment($uploadfile, $filename);
}
}
}This will definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Thanks, now i dont see the "please set the message" but, i can not send more than one file.
Thanks
Hello,
We Really Apologize about the Inconveniences caused! Please check out the Official PHPMailer Example: https://github.com/PHPMailer/PHPMailer/blob/master/examples/send_multiple_file_upload.phps that has the Code for Multiple File Uploads.
Please consider modifying the Code provided according to your needs and it should definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard