00001 <?php 00015 require_once('Rmail.php'); 00016 00017 $mail = new Rmail(); 00018 00022 $mail->setFrom('Richard <richard@example.com>'); 00023 00027 $mail->setSubject('Test email'); 00028 00033 $mail->setPriority('high'); 00034 00038 $mail->setText('Sample text'); 00039 00044 $mail->setHTML('<b>Sample HTML</b> <img src="background.gif">'); 00045 00050 $mail->setReceipt('test@test.com'); 00051 00055 $mail->addEmbeddedImage(new fileEmbeddedImage('background.gif')); 00056 00060 $mail->addAttachment(new fileAttachment('example.zip')); 00061 00065 $address = 'fruity@licious.com'; 00066 $result = $mail->send(array($address)); 00067 ?> 00068 00069 Email has been sent to <?=$address?>. Result: <?var_dump($result)?>