Re: trying to get phpmail to send an attachment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux