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
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 have
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.
Apparently,
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 lowly
4 matches
Mail list logo