5
Nice one guys, cheers.
I'm not really a php expert, more a perly/asp kinda guy.
i have never really seen this format before:
$XXXXX->XXXXX->XXXXX(...);
But it makes sense. I wound up accessing class.phpmailer.php directly by accessing the class and functions directly (after including the file of course):
le="color: #000000"><?php $mail = new PHPMailer(); $mail->From = $xoopsConfig['adminmail']; $mail->FromName = $xoopsConfig['sitename']; $mail->Mailer = "mail"; $mail->Subject = $subject; $mail->Body = $message; $mail->AddAddress($xoopsConfig['adminmail'], $xoopsConfig['sitename'], "base64", "application/octet-stream"); $mail->AddStringAttachment($buffer, $filename); $mail->Send();
For anyone wondering what this thread was about and how to use the included examples, make sure that the required files are included. Form the filename in to $filename correctly, dump the file contents in to $buffer and off you go....all good.