SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Oct 2001
    Posts
    439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to stop a link breaking over two lines in an email

    Hi guys,
    I am sending out an email with PHP, but the url in the email keeps breaking over two lines if it is slightly longer.

    Is there anyway I can stop the link breaking, because then the url no longer works???

    thanks

  2. #2
    SitePoint Evangelist catweasel's Avatar
    Join Date
    Apr 2007
    Location
    Goldfields, VIC, Australia
    Posts
    518
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mvd View Post
    Hi guys,
    I am sending out an email with PHP, but the url in the email keeps breaking over two lines if it is slightly longer.

    Is there anyway I can stop the link breaking, because then the url no longer works???

    thanks
    You can use tinyurl to turn long urls into small ones .. you can also wrap the link in <> brackets to maintain their functionality over two or more lines.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,597
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    Surrounding it in < > works for most email programs as long as it is all passed in one piece in the email itself.

    For example

    <http://wwww.felgall.com/award/status.htm>
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Evangelist
    Join Date
    Oct 2001
    Posts
    439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks alot guys.

    i wasnt aware of using <>


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
  •