Hello there,
I have followed this topic on how to add attachments in a contact form.
I followed all the steps up till "Send the uploaded file as Email attachment..." where using the native send_mail and phpMailer go separate ways and I couldn't figure out how to change the code to add the attachment to phpMailer.
Using this doesn't work:
___________
I have followed this topic on how to add attachments in a contact form.
I followed all the steps up till "Send the uploaded file as Email attachment..." where using the native send_mail and phpMailer go separate ways and I couldn't figure out how to change the code to add the attachment to phpMailer.
Using this doesn't work:
- Code: Select all
<input type="file" class="file" name="ci_ex" /> <cms:input type="hidden" name="ci" required='1' validator='EmailEx::validate=max_size:4096&allowed_ext:jpeg,jpg,gif,png' value='1' />
___________
- Code: Select all
$mail->AddAttachment("<cms:show ci />");