Re: [PHP] trying to get phpmail to send an attachment

2005-08-25 Thread Jasper Bryant-Greene
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']);

Re: [PHP] trying to get phpmail to send an attachment

2005-08-25 Thread Richard Lynch
On Wed, August 24, 2005 12:39 pm, Ross wrote: > Fatal error: Function name must be a string in > c:\Inetpub\wwwroot\ssn\php_mail.php on line 11 var_dump($_FILES['userfile']); $_FILES['userfile'] is going to be an array. It will have elements like 'name', 'tmp_name', 'error', 'size' etc. > $mail

[PHP] trying to get phpmail to send an attachment

2005-08-24 Thread Ross
I get an error saying Fatal error: Function name must be a string in c:\Inetpub\wwwroot\ssn\php_mail.php on line 11 the code --- IsSMTP(); // telling the class to use SMTP $mail->Host = "mail.blue-fly.co.uk"; // SMTP server $mail->From = "[EMAIL PROTECTE