[PHP] SOLVED Re: [PHP] Variable Scope problem passing function parameters

2008-12-18 Thread Jim McIntyre
Jim McIntyre wrote: metastable wrote: Jim McIntyre wrote: $phpMail = new PHPMailer(); $phpMail->From = $from; $phpMail->AddAddress($this->to); $phpMail->Subject = $subject; $phpMail->Body = $body; return $phpMail->Send(); Never mind - I found the problem. It was a lo

Re: [PHP] Variable Scope problem passing function parameters

2008-12-18 Thread Jim McIntyre
metastable wrote: Jim McIntyre wrote: $phpMail = new PHPMailer(); $phpMail->From = $from; $phpMail->AddAddress($this->to); $phpMail->Subject = $subject; $phpMail->Body = $body; return $phpMail->Send(); $this -> to it has no meaning in the scope of your class. Appare

Re: [PHP] Variable Scope problem passing function parameters

2008-12-18 Thread metastable
Jim McIntyre wrote: > I'm new to PHP 5 and classes, but I've done a lot of ActionScript. > > I'm trying to use PHPMailer inside my own class (a service for > AMFPHP). I'm having problems getting the data that'spassed into my > class's send() method to the instance of the PHPMailer. > > Basically, I