Closed Thread
Results 1 to 8 of 8

Thread: PlainTemplate feature - formatting your plain text email

  1. #1
    Join Date
    Dec 2003
    Posts
    3,901

    Default PlainTemplate feature - formatting your plain text email

    This HOW-TO guide explains how to use the new PlainTemplate mail_options feature in version 3.00 of FormMail.

    It's been installed on our main website, click to view it now.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  2. #2
    Join Date
    Dec 2004
    Posts
    10

    Default Re: PlainTemplate feature - formatting your plain text email

    Hello There!

    I am very pleased to say that the form is working well now. Somehow I must have messed up the code on my first attempt. Thanks for you addressing my problem... and being patient with me I bet you get tired of us newbies.

    Randy

  3. #3
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: PlainTemplate feature - formatting your plain text email

    Hi Randy,

    Thanks for letting us know.

    We love newbies.

    We particularly love newbies who try hard to find the answer themselves and read all the doco. That helps everyone.

    Servers are tricky things though, and lots of them don't do the right thing. That's why we've got these forums as a resource for everyone who comes along.

    Post a question if you need anything else.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #4
    Join Date
    Mar 2005
    Posts
    4

    Default Re: PlainTemplate feature - formatting your plain text email

    Hallo,

    I'm new to FormMail, but got everything working so far. My question is "cosmetical". The plain template sends all the data in the specified order but unfortunately without line breaks. All the information is added in behind each other.

    What do I have to add to remedy that. I would prefer to do without html templates.

    Thank you very much in advance!

  5. #5
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: PlainTemplate feature - formatting your plain text email

    Hi,

    This could be a server compatibility problem.

    Look in the configuration section of FormMail for the BODY_LF setting.

    If it looks like this:
    PHP Code:
    define("BODY_LF","\r\n");  // the new default: use this for CR+LF 
    Then that's not the issue.

    Perhaps you're referring to TEXTAREA fields. In this case, you simply need to tell FormMail to keep the line breaks, by adding this to your HTML form:

    Code:
    <input type="hidden" name="mail_options" value="KeepLines" />
    If you already have a "mail_options" field, just add "KeepLines" to the end of the value (with a preceding comma).
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  6. #6
    Join Date
    Mar 2005
    Posts
    4

    Default Re: PlainTemplate feature - formatting your plain text email

    Thank you very much for the quick answer.

    my code DID look like this:
    define("BODY_LF","\r\n"); // the new default: use this for CR+LF
    when I put it to the old value:
    define("BODY_LF","\n"); // the old default: just LF
    it worked fine.

    The TEXTAREA unfortunately does not keep the line breaks, even though I included the KeepLines:
    <input type="hidden" name="mail_options" value="PlainTemplate=plain.txt,TemplateMissing=n/a,KeepLines" />

    This issue is not so VERY important. But if you have a solution I would be grateful for it

    Inka

  7. #7
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: PlainTemplate feature - formatting your plain text email

    Hi,

    Put this back the way it was:
    PHP Code:
    define("BODY_LF","\r\n"); // the new default: use this for CR+LF 
    Do the lines stay there now in your TEXTAREAs?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  8. #8
    Join Date
    Mar 2005
    Posts
    4

    Default Re: PlainTemplate feature - formatting your plain text email

    Hallo,


    no, like this the whole email contains no line feed at all!

    It must be a server problem, since I tested the script on another server and it works just fine.

    Anyway - THANKS for your help!

    Inka

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. HTML formatting incorrectly
    By ShadoFlameX in forum FormMail Subscription Support
    Replies: 17
    Last Post: 04-May-2005, 05:15 PM
  2. New Server - Templates sent as plain text
    By Anubis in forum FormMail Subscription Support
    Replies: 10
    Last Post: 19-Jan-2005, 11:30 AM
  3. External CSS Formatting of HTML Email Template
    By sebestyen in forum FormMail Subscription Support
    Replies: 2
    Last Post: 14-Oct-2004, 10:30 PM
  4. Required fields containing default text
    By tvulucy in forum FormMail Subscription Support
    Replies: 9
    Last Post: 08-Oct-2004, 10:26 PM
  5. auto add feature
    By jamesh3 in forum FormMail Subscription Support
    Replies: 1
    Last Post: 17-Jun-2004, 07:44 AM

Bookmarks

Posting Permissions

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