Re: Determine Email Headers

From: Mike Blezien (mickalo_at_frontiernet.net)
Date: 05/25/04


Date: Mon, 24 May 2004 17:51:54 -0500
To: Wiggins d Anconia <wiggins@danconia.org>

What I was getting at, is a email is sent as a standard plain text message, the
body content of the message is sent with no problems, but if the message is sent
as HTML formatted email, then all the HTML elements, tags...etc are included in
the body of the message.... so I was wondering, when using the Mail::Audit
module what is the best way to determine which email header "content-type" to
pass, IE "Content-type: text/html\n" or "Content-Type: text/plain\n" to be
included in the email message that is then sent to the real email address.

If you happen to have any example coding, it would be much appreciate if you can
share it :)

TIA

Mike

Wiggins d Anconia wrote:
>>Hello,
>>
>>we're currently using the Mail::Audit module to process a perl script
>
> that pipes
>
>>email sent to "fake" forward emails address, then send it's to a real
>>address,... all works fine except if it's a HTML formatted email. My
>
> question
>
>>is, is it possible with this module to determine if it's HTML or plain
>
> test
>
>>email... or would it be better to simple strip out all the HTML elements.
>>
>
>
> It appears that Mail::Audit provides a wrapper to a message, if that
> message is of a MIME format (which most if not all HTML messages will
> be) then you can check the type of the message, and process its various
> parts using the MIME::Entity methods.
>
> Only you can tell us whether or not your users want their HTML e-mail. I
> know I would be more than a little pissed if my HTML e-mail ended up in
> the bit bucket, not because I am any big fan of HTML e-mail (I am not)
> but (much to my dismay ;-)) I don't control everyone elses mail clients
> or sending habits...
>
> What do you mean by "all works fine unless it has HTML"... the module,
> your program, or something down the line?
>
> http://danconia.org
>
>



Relevant Pages

  • Re: Determine Email Headers
    ... that pipes ... all works fine except if it's a HTML formatted email. ... Only you can tell us whether or not your users want their HTML e-mail. ...
    (perl.beginners)
  • Re: Access Email Header From Within HTML
    ... to be configured to execute javascript included in an HTML e-mail (every ... Instead of attacking the computer system it ... That is why many e-mail clients will not show images in HTML e-mail by ...
    (comp.lang.javascript)
  • Re: images blocked
    ... However if you are using Outlook Express to view your email as HTML. ... You see spammers include a small graphic in the email that is "pulled" down from their servers to your computer. ... You will now see the NEW "Block images and other external content in HTML e-mail" check box. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: html formatted email with outlook ?
    ... A client wants to send a html formatted email to a list of clients. ... Would anyone have a recommended method? ...
    (uk.comp.misc)
  • Re: CodeWeaver Crossover Linux
    ... the people I value and get the information I value regardless of the ... I have no problem with HTML formatted email ... unless it overrides my personal settings. ...
    (Ubuntu)