Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problems posting a form

    hi im having problems posting a form once you click on submit. It goes to my email server as an attachment & when you try to open the attachment it wont let you as it is a (.att file) which i have never heard of!
    Please does anyone know what im doing wrong!? thanks

  • #2
    Regular Coder mlse's Avatar
    Join Date
    Mar 2005
    Posts
    624
    Thanks
    20
    Thanked 19 Times in 18 Posts
    What mechanism are you using to send the email?

    I had a similar problem recently - with PHP's mail() funtion. I was sending via the mail() function with content-type set to multipart/mixed (which causes some mail clients to go AWOL if all you're sending is plain text). I found that the safest content-type to use is text/plain. If you want to send pretty html-formatted emails, then I expect that a content-type of text/html would probably be ok. But then some archaic mail clients won't support this - also there are some mail clients which seem to be intentionally awkward! (AOL is one of them) - which brings me back round to the conclusion that text/plain is the safest way to send an email!

    I hope that helps!

    Mike.

  • #3
    Regular Coder mlse's Avatar
    Join Date
    Mar 2005
    Posts
    624
    Thanks
    20
    Thanked 19 Times in 18 Posts
    Additional info for you:

    If you want to know about MIME types (which is specified in the Content-type part of you HTML or email header), have a look here (There are lots and lots of types! Most of them I have never heard of and will probably never need to use! I should think that most of them would also cause your bog-standard mail client to throw a wobbly ...).
    Last edited by mlse; 06-02-2005 at 12:52 PM.

  • #4
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sorted!

    hi, yeah thanks ive sorted it now.... all i had to do is insert enctype="text/plain"> after post! thought it must have been something really simple!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •