[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

RE: [PHP] Variable scope problem

2001-03-28 Thread Jason Lotito
> -Original Message- > From: Joe Nelson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 28, 2001 6:17 PM > To: php list > Subject: [PHP] Variable scope problem > > > I have two functions like the ones below. If the first one creates a > variable as global, shouldn't it be accesible to