$mail = new mail ();
$mail->setFrom ("sender@example.com","Sender Example Com");
$mail->addTo ("recipient1@example.com","Recipient1 Example Com");
$mail->addTo ("recipient2@example.com","Recipient2 Example Com");
$mail->setBodyText ("Content of TextBody part");
$mail->addAttachment ("file0.text", "File content");
$contentID1 = $mail->addAttachmentInline ("file2.jpg", "qcqscqs");
$mail->setBodyHTML ("<p>Content of HTMLBody part with inline
<img src='cid:$contentID1'></p>");
echo $mail->getMail ();
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2709 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
4.1 KiB
4.1 KiB