Send 2 attachements

Quevi2008 13 Dec, 2008
Hi,

I'm using J!1.0.15 and I'm trying to send 2 attachments after the form is completed to the user. How can I realize this?

I'm using this code right now:
<?php
$attachements[0] = "http://www.domain.com/file.pdf";
$attachements[1] = "http://www.domain.com/file2.pdf";
?>
And I've added it to "On Submit code - before sending email:"

I do receive an e-mail but no attachments...
GreyHead 13 Dec, 2008
Hi Quevi2008,

Two problems here. You need the file 'path' not the url - something like "htdocs/mydomain/file.pdf"; and attachments only has one 'e'.

Bob
Quevi2008 13 Dec, 2008
Oh my god... as simple as that!

Thanx for the quick reply!
This topic is locked and no more replies can be posted.