Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
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:

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 />");
Alin, I wonder if you have seen the following discussion? -
viewtopic.php?p=17060#p17060

Does it help?
KK wrote: Alin, I wonder if you have seen the following discussion? -
viewtopic.php?p=17060#p17060

Does it help?


I didn't see that, searched all over the forum but I guess "Need help in form mail script" didn't get to me as a title of something that would contain what I needed. Thank you a lot.
3 posts Page 1 of 1