Mail_Mime - internal link to attached file in html email
| From: | Tommy Ipsen | Date: | Sat, 27 Nov 2004 14:17:13 +0000 |
| Subject: | Mail_Mime - internal link to attached file in html email | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15851@lists.php.net to get a copy of this message | ||
Hi group
I'm using Mail_Mime to compose a HTML email with attached images and files. When I'm attaching images it's no problem linking to these pictures in the HTML - just by using the correct image link Mail_Mime transparently replaces the image link with the appropriate cid link.
I was wondering whether it's possible to use the anchor tag to link to attached files as well - for instance:
<a href="sample.pdf">Attached PDF-file</a>
and then use something like
$mime->addAttachment('sample.pdf');
Of course I've tried the above code, but the link to "sample.pdf" doesn't get replaced by the appropriate content id like the ordinary image link does!
Is my idea possible or not?
Cheers, Tommy Ipsen