I was intrigued by this but it turns out to be something simple ;o))

When you submit the form.. the newlines and carriage returns the hex
representations. In my example I put :

I
wanted to do
this for
you

and in the return string I get:

I%0D%0Awanted+to+do%0D%0Athis+for+%0D%0Ayou

Normal parsing of form data... the hex is converted to those characters and
blows away the \n and \r. If you want to catch this.. modify the parsing
routine (not use CGI.pm or that ilk).

There is also the possibillity that you are trying to catch the 'soft'
returns if 'wrap' is on. These are not coded.. but you can compute these.

HTH..

Charles Maier
CDM Consulting Services
http://www.cdmcon.com
(610) 942-2726

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf
Of "Jan Harders" <[EMAIL PROTECTED]>"Perl-Win32-Users Mailing List"
Sent: Monday, May 29, 2000 2:23 PM
To: Perl-Win32-Users Mailing List
Subject: Mail::Sender


HI,
I wrote a script that is processing an form and then send an email. I used
Mail::Sender because it should send files too. it works allright, but I got
an textarea in the form for the body of the email. My problem is that the
newlines given from the form are not printed in the mail. I tried to give
the body back to the browser and print it into a file, and it works, there
are newlines. But still, it doesnt work in the mail. I used

$msg =~ tr/+/ /;
$msg =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;

to decode the URL given by GET.
Does anybody know where my mistake is? How can I make it work?
Regards,

Jan Harders <[EMAIL PROTECTED]>
--
hitservice.de <www.hitservice.de>


---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to