Hi Angus: I think I can see my problem. I'm surprise I did not see it before.
After studying the format returned from the form, as pasted below, all the body has to be in HTML format. I'm sending the data as plain text from the LWP script. This raises my next question, does LWP has a way to send data between text and html format, or this is not even related to LWP at all ? I don't want to have to write something to convert the text message in HTML format. There must be some Perl module that does this, or something else ? Anyone know what I need ? I will try a small HTML test to the form, and see how the email I receive back is formatted, just to make sure that this is the problem. Basically after each paragraph I need this "CRLF<P>Text</P>" etc.... Louis. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Louis Selvon Sent: Monday, December 30, 2002 01:44 PM To: Angus Lees; Louis Selvon Cc: [EMAIL PROTECTED] Subject: Re: [Re: [SLUG] Need Help With LWP and newlines] >Angus Lees <[EMAIL PROTECTED]> wrote: Hi Angus. >you probably need to have CRLF pairs instead of simple newlines (\r\n instead of \n). *** Yes I am using "\r", and "\n". When you say CRLF pairs are your saying "\r\x0A" or "CRLF" ? >are you able to dump the mail as it goes through the web server? *** I can only dump the mail from my end of the server. The form processing my request is on another server that is not mine. But when I post the mail from the LWP script, I get an email as well of what I sent. >it might even be the final mail client helpfully "wordwrapping" email; apparently some of them do that. *** I do not know. But what I did was download the form to my server, and edited the <form> action tag to a script of mine that dumps how the data is sent by the form after processing. A sample output is shown here. I typed this in the form body text area from my browser: "test test" I get this back: "\x0D\x0A\x3CP\x3Etest\x3C\x2FP\x3E\x0D\x0A\x3CP\x3Etest\x3C\x2FP\x3E" I do not know what "\x3CP", "\x2FP" means. I know the other codes from the ASCII table. But my LWP script is sending the following: "test\n\ntest", and even "test\r\rtest" . Both shows this when the mail is actually posted: "testtest". Louis. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
