Click to See Complete Forum and Search --> : Form email


thomasthomas
04-28-2003, 05:01 PM
I have a previous Form pgm that emailed results to me with a box name and reply on separate lines in the email. I changed webhosters and used formmail.php and the resulting email comes to me as an attachment titled "Postdata.att". The email can be opened with Notepad but the box titles and responses are all jumbled together in one long paragraph with no spaces. What have I done wrong.

<FORM METHOD="POST" ACTION="mailto:thomas@environmentalcontrolinc.com">
<INPUT NAME="success" TYPE="hidden"

khalidali63
04-28-2003, 05:13 PM
add entype attribute with value "text/plain" in the form

<form method="post" action="mailto:thomas@environmentalcontrolinc.com" enctype="text/plain">

ellen4566
05-03-2003, 10:24 PM
Hi,

I have been trying to do the same thing. I get the file with the .att extension. I can see it in notepad, but it will need to be parsed to be usable. I put the enctyp parameter in but have not seen any change. Did this work for you??

Thanks!

jeffmott
05-04-2003, 11:02 AM
According to the documentation I've read, enctype="text/plain" is not one of the valid encoding types for the FORM Tagapplication/x-www-form-urlencoded is the default and multipart/form-data is what should be used in combination with the input element, type="file". But a valid value for enctype is any media type. So it is perfectly valid to use text/plain.

thomasthomas
05-04-2003, 01:47 PM
Originally posted by khalidali63
add entype attribute with value "text/plain" in the form

<form method="post" action="mailto:thomas@environmentalcontrolinc.com" enctype="text/plain">




IT worked.

thomasthomas
05-04-2003, 01:49 PM
Originally posted by ellen4566
Hi,

I have been trying to do the same thing. I get the file with the .att extension. I can see it in notepad, but it will need to be parsed to be usable. I put the enctyp parameter in but have not seen any change. Did this work for you??

Thanks!

It worked for me - Tom - original submitter

ellen4566
05-05-2003, 06:04 AM
I figured out what I did wrong. It is working now. Thanks.