Results 1 to 3 of 3
  • Thread Tools
  1. 4 Star Lounger
    Join Date
    Feb 2001
    Location
    Australia
    Posts
    528
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Hyperlinks not showing in emails

    We have a web application that sends emails to users. The emails include various hyperlinks, which are displayed correctly and work correctly except in one case, in which the link includes the name of the server on which the application is running. The link text is displayed correctly in the email, but the link itself does not work correctly because the application strips out the server name when it sends the email. This does not happen if the application is used to send the emails via a browser on the server itself, but it does happen when the application is used to send the emails via a browser over the Web. What could be causing this?

    The application inserts the link in the email as follows.

    <a href = "http://application.server.com/folder">http://application.server.com/folder</a>

    However, when the email is received, it contains only a part of the link as follows; i.e., with the server name stripped out of the link.

    <a href = "/folder">http://application.server.com/folder</a>

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    I'm a little bit confused about the email is generated. Is it 100% server-side-scripting driven, or does the message require user action in a browser? If a user-action is required, is it possible that the application is not actually creating the <a> tag but the browser is creating the link on the fly because it displays all URLs as links? If so, that could explain the discrepancy.

  4. 4 Star Lounger
    Join Date
    Feb 2001
    Location
    Australia
    Posts
    528
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Thanks for your reply. The code is fully generated by the application. We verified that the link was correctly formatted before the email was sent, but the system dropped the server name out of the link when the email is sent. The developer has now come up with a work-around by replacing the link with a placeholder tag (#Link#), which is replaced by the application when it sends the email.

    1. Before
    - System displays email text (including link) to sender.
    - Sender clicks button to send email to recipient.
    - System somehow drops server name from link when sending email.
    - Link in received email is incorrect.

    2. Now
    - System displays email text (including tag representing link) to sender.
    - Sender clicks button to send email to recipient.
    - System replaces tag with hyperlink when sending email.
    - Link in received email is correct.

Posting Permissions

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