View Full Version : problem without solution (perl)
OK forget this question, I found a better solution.
I do have another question. I have little mailing list script but when I fill out the form every line is run together. How would I fix it so if there were a few extra spaces or if there was a another line it would print those few extra spaces or go to the next line?
------------------
**** ThAnKs ****
My Favorite Saying.... R.T.F.Q.
[This message has been edited by cngo (edited 12-22-98).]
W/O being able to see the script itself...
The first two things I would check for are..
Is the permissions set to 755?
and are there any line feeds?
Many scripts say to set them 777... but for security reasons on this server they need to be 755
hopefully this will help
Deb
Try adding this extra thing in the <textarea> tag;
wrap=physical
In theory that'll insert a carriage return at the end of each line, whereas excluding wrap, or wrap=virtual will only show carriage returns where the user actually hit [Enter]
Hope this helps
------------------
Del
http://www.downinit.com/
Tried it, failed. oh well.
Hmmm... lessee here. You could try this too, although it's a bit longer (and in the script instead)
@message = split(/\./, $formdata{'message'});
foreach $line(@message){
print MAIL "$line\n";
}
Replace $formdata{'message'} with whatever your form element's name is, adjust MAIL accordingly, etc... This should at least break it up by sentences, adding a newline after each (which should appear as a carriage return in most mail clients). Fiddle with the seperator to try and make it split at a better place, eg if a period ends up being a poor split-point, try assorted other punctuations (I wouldn't recommend whitespace tho, as it'd put a newline after every word).
------------------
Del
http://www.downinit.com/
I haven't tried that one yet but I remembered it's not the script it is Microsoft Outlook. The mail looks fine in other programs though.
------------------
**** ThAnKs ****
My Favorite Saying.... R.T.F.Q.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.