Hello,
I'm trying to attach a standard pdf file to the e-mail response users receive when submitting a form.
I've entered 'file1' in the list attachement.
I'm using this custom code before the e-mail options: [pre]<?php
$form->files["file1"]["path"] = "images/documents/file1";>[/pre]
Is there anything I'm missing?
Cheers, [br]Pieter
I'm trying to attach a standard pdf file to the e-mail response users receive when submitting a form.
I've entered 'file1' in the list attachement.
I'm using this custom code before the e-mail options: [pre]<?php
$form->files["file1"]["path"] = "images/documents/file1";>[/pre]
Is there anything I'm missing?
Cheers, [br]Pieter
Hi Pieter,
You can add it directly in the Attachments list box of the email action - but it needs to be a *full* path - yours does not include the first part before images/
Bob
You can add it directly in the Attachments list box of the email action - but it needs to be a *full* path - yours does not include the first part before images/
Bob
Hi Bob,
Thanks for your reply. I've tried to add the full path to the attachment list. But when I submit the form the e-mail somehow doesn't come through anymore.
Pieter
Thanks for your reply. I've tried to add the full path to the attachment list. But when I submit the form the e-mail somehow doesn't come through anymore.
Pieter
Hi Pieter,
Please enable the Debugger and copy and paste the Debugger output here.
Bob
Please enable the Debugger and copy and paste the Debugger output here.
Bob
The path to file in the attachments should be a server path, you are using a web path here and that will not work!
Hi Max,
What exactly is the difference between a server path and a web path?
Pieter
What exactly is the difference between a server path and a web path?
Pieter
web path is like http://www.whatever.com/file.pdf
But a server path will usually be like C:/file.pdf or /public_html/files/file.pdf
But a server path will usually be like C:/file.pdf or /public_html/files/file.pdf
This topic is locked and no more replies can be posted.