It is hard to say where the script is breaking down. I don't have pgp, so don't know what -fea +VERBOSE does... The best I can do is give you some hints on where to troubleshoot.

Is the problem that the body is not decrypting properly? or that the body is simply not part of the message when you receive it? Does the body "look" right (obviously if it is encrypted you won't be able to read it, but it should take a fairly obvious shape). How does the body of the message compare to other pgp encrypted email messages that succeed? Is the email missing anything (headers, separators) that is necessary to decrypt it?

If you print out the message to STDERR (or your error log, or even just back to the browser) does it look like an email message? Does it look like a pgp encrypted email message?

Do you know for sure that just sending the output of pgp as the body of the email is what you need?

Answering those questions should narrow it down for you, anyhow. Sorry I can't be of more help.


In reply to Re: Re: Perl and PGPMail by saintbrie
in thread Perl and PGPMail by krystal

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.