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
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
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
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 have this:
class EmailAMF
> -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
I have two functions like the ones below. If the first one creates a
variable as global, shouldn't it be accesible to the second function?
function setGlobal() {
global $test;
$test = "123";
}
function getGlobal() {
global $test;
echo $test;
}
--
PHP General
6 matches
Mail list logo