Brethren!

That's slightly off topic because it's more about mime than about Perl. (though many "Perl" questions here are mostly about the targeted technology)

I have the requirement to send HTML emails containing newsletters and displaying attachments not only inline as icon-images BUT also opening those attachments by clicking on that image...

The requirement comes from Lotus Notes ("LN") where my clients normally drag and drop PDFs into the email in a WYSIWYG manner. And recipients using LN see those mails in excatly the same way like composed...

Well not if I test with Gmail web client°, you just see a text like (See attached File: xxx.pdf) and looking into the generated HTML doesn't reveal any Mime magic:

<html><body> <p><i>(Siehe angeh=E4ngte Datei: Newsletter 04-15 deu.pdf)</i>

I somehow doubt that LN is parsing for a German text to display an attachment inlined and supposed it's just displaying the email from the database and all recipients outside the Intranet will see the same thing like in my gmail browser.

Is that the case or am I missing something?

Is there an reliable way to link in line to an attachment such that it is opened on click?

(mostly need a confirmation for my client... =)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

°) can't test otherwise because of firewall restrictions


In reply to (OT) Linking to an attachment from within a HTML email by LanX

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.