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 10 of 10
  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Unhappy How make line break in email body text?

    Hi

    I have made a button to automatically write an email. Text automatically appears in the email body. It looks ugly though! There are no line breaks.
    I tried putting <br /> into the places where I want a line break, but it doesn't work - I just get "<br />" appearing in my email text!

    How can I have a line break appear in the body text of the email?

    Many thanks!!
    Jim

  • #2
    New Coder
    Join Date
    Aug 2010
    Location
    Illinois
    Posts
    20
    Thanks
    1
    Thanked 1 Time in 1 Post
    try \r\n

    if that doesn't work, paste your code and it will be easier to help out.

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    837
    Thanks
    10
    Thanked 79 Times in 77 Posts
    Code:
    <a href="mailto:someaddress@somedomain.com?cc=someotheraddress@somedomain.com&subject=some subject&body=Some body text.%0D%0ASome new line.">create email</a>
    You can cause the body text to have a new line within the text you pre-populate by using the ascii characters for a carriage return (%0D) and line feed (%0A).
    ☠ ☠RON☠ ☠

  • Users who have thanked Major Payne for this post:

    Jimroko (08-23-2010)

  • #4
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    thank you

    Thanks you so much every one. Really helpful and amazing.

    All working perfect.

    http://www.jimrokos.com/shop.html

    (just got to upload it in the next hour or two . . . )

  • #5
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    837
    Thanks
    10
    Thanked 79 Times in 77 Posts
    You are very welcome. Glad you got it working.
    ☠ ☠RON☠ ☠

  • #6
    New Coder
    Join Date
    Aug 2010
    Location
    Sydney/Australia
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts
    you know by putting your email on the website itself you will get a load of spam, plus alot of users dont have mail clients setup on their pc's, it would probably best to setup a simple contact form.

  • #7
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yes, I do get lots of spam! I'm planning to make the email button an image, rather than text - would that help for this? Need to set up to take credit card payments really . . .

  • #8
    Regular Coder
    Join Date
    Mar 2010
    Posts
    294
    Thanks
    3
    Thanked 7 Times in 7 Posts
    When you specify a calculation, there's a button labeled with this character. You can click it to add the line break to your quoted text.
    websitetemplates[dot]bz

  • #9
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    837
    Thanks
    10
    Thanked 79 Times in 77 Posts
    You can look at munging techniques:

    http://www.projecthoneypot.org/how_t...spambots_3.php

    Choose the one that works best for you. The best method of doing what you want to do is to use a server-side script instead of a client side link.
    ☠ ☠RON☠ ☠

  • #10
    New to the CF scene
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi all, I am new to this coding stuff and am having similar trouble.

    I have used (%0D) and line feed (%0A) which works purfectly on my machine which has windows 7 and office 2010 outlook.

    problem is when the same link is opened on other machines all text is on the same line.

    Any ideas ?

    Code is (works fine on my windows 7 machine with office 2010 outlook)

    First%20Aid%20at%20Work%20Enquiry%20-%201%20Days&body=I%20have%20just%20visited%20your%20website%20and%20would%20like%20to%20be%20contact ed%20with%20information%20about%20available%20First%20Aid%20courses%20and%20dates.%0D%0AI%20would%20 provisionally%20like%20to%20book%20(%20%20%20)%20spaces%20on%2019/12/2011%20-%201%20Day%20Course%20%0D%0A%0DMy%20Name%20is%20%20:%0D%0DMy%20Company%20is%20:%0D%0DMy%20Number%20i s%20:%0D%0DMy%20Available%20Dates%20Are%20:%0D%0DPlease%20contact%20me%20to%20discuss%20matters%20fu rther.%20

    Please help

    Thanks in advance

    Zen


  •  

    Tags for this Thread

    Posting Permissions

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