Re: trying to get phpmail to send an attachment
| From: | Jasper Bryant-Greene | Date: | Thu, 25 Aug 2005 08:04:17 +0000 |
| Subject: | Re: trying to get phpmail to send an attachment | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221330@lists.php.net to get a copy of this message | ||
Ross wrote:
$mail->AddAttachment($_FILES('userfile'));Ignoring the fact that $_FILES['userfile'] is an array and probably isn't what you want to pass to the AddAttachment method (although I know nothing about phpmail specifics), shouldn't that be: $mail->AddAttachment($_FILES['userfile']); (square brackets, as $_FILES is an array, not a function) Jasper