Note that there are some explanatory texts on larger screens.

plurals
  1. POsending multipart text/html alternative message with file attachments with perl,
    primarykey
    data
    text
    <p>I'm busy putting together a script which creates email with multipart alternative parts and attachments. Now all seems to be working fine except for normal attachments, they don't seem to be available for download in Gmail or Yahoo webmail, all my inline images are available but if I attach anything be it a simple .txt file or pdf they are not available for download and I have set the Disposition as attachment.. and I can see it's in the mail as such. Below is how I go about doing it. Is there something else I should be doing?</p> <pre><code> my $ent = MIME::Entity-&gt;build(From =&gt; $from, To =&gt; $to, Type =&gt; "multipart/alternative", 'X-Mailer' =&gt; undef); if ($plain_body) { $ent-&gt;attach( Type =&gt; 'text/plain; charset=UTF-8', Data =&gt; $plain_body, Encoding =&gt; $textEnc, ); } $ent-&gt;attach(Type =&gt; 'multipart/related'); $ent-&gt;attach( Type =&gt; 'text/html; charset=UTF-8', Data =&gt; $content, Encoding =&gt; $htmlEnc, ); if ($count != 0) { for my $i (0..$count-1){ $ent-&gt;attach(Data =&gt; $attachment[$i], Type =&gt; $content_type[$i], Filename =&gt; $attname[$i], Id =&gt; $cid[$i], Disposition =&gt; $disposition[$i], Encoding =&gt; $encoding[$i]); } </code></pre> <p>////\ The Attachment which is not visible in either Yahoo or Gmail webmail..</p> <pre><code>------------=_1371465849-18979-0 Content-Type: text/plain; name="Careways Final.txt" Content-Disposition: attachment; filename="Careways Final.txt" Content-Transfer-Encoding: quoted-printable </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload