getFile('background.gif'); $text = $mail->getFile('example.txt'); $html = $mail->getFile('example.html'); $mail->setHtml($html, $text); $mail->addHtmlImage($background, 'background.gif', 'image/gif'); $mail->addAttachment($attachment, 'example.zip', 'application/zip'); $mail->setReturnPath('test@fam.wacsg.net'); $mail->setFrom('"Joe" '); $mail->setSubject('Test mail'); $mail->setHeader('X-Mailer', 'HTML Mime mail class'); $result = $mail->send(array('test@fam.wacsg.net'), 'smtp'); if (!$result) { print_r($mail->errors); } else { echo 'Mail sent!'; } ?>