Re: Determine Email Headers
From: Mike Blezien (mickalo_at_frontiernet.net)
Date: 05/25/04
- Next message: Mike Blezien: "Re: Determine Email Headers"
- Previous message: Wiggins D Anconia: "Re: Question of memory management in Perl"
- In reply to: Wiggins D Anconia: "Re: Determine Email Headers"
- Next in thread: Mike Blezien: "Re: Determine Email Headers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
>
>
- Next message: Mike Blezien: "Re: Determine Email Headers"
- Previous message: Wiggins D Anconia: "Re: Question of memory management in Perl"
- In reply to: Wiggins D Anconia: "Re: Determine Email Headers"
- Next in thread: Mike Blezien: "Re: Determine Email Headers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|