SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Link in emails

  1. #1
    SitePoint Member
    Join Date
    Jul 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Link in emails

    Hi,

    I am trying to write a script that will send an email from my website. The problem I am having is that when I send HTML formatted email (using Zend Framework) the links href attribute is removed by Yahoo, Hotmail .....

    For example in the email I would have <a href="some address here">click here</a> when a user receives this email the link is unclickable.


    On the other side if I write an HTML formatted email using Outlook lets say, the link in the email will stay active and user will be able to click on it.

    I have been trying to find an answer to it, but not much luck.

    Can anybody help?

    Thanks in advance.

  2. #2
    SitePoint Enthusiast Linkoroo's Avatar
    Join Date
    Jul 2009
    Location
    linkoroo.com
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just place the link without the <a> tags. Most email processors will recognize it.

  3. #3
    SitePoint Member
    Join Date
    Jul 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your reply.

    I need to pass some parameters with the link

    Something like this:

    <a href="sitename/index.php?par=value&par2=value">click here</a>

    For that I am trying to get this work.

    What would you suggest?

  4. #4
    SitePoint Member
    Join Date
    Jul 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    set the inner of the <a> as the complete url, like this:

    <a href="sitename/index.php?par=value&par2=value">sitename/index.php?par=value&par2=value</a>

    And encourage your users to copy the complete URI and paste it on his browser address bar

  5. #5
    SitePoint Member
    Join Date
    Jul 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by LeoAP View Post
    set the inner of the <a> as the complete url, like this:

    <a href="sitename/index.php?par=value&par2=value">sitename/index.php?par=value&par2=value</a>

    And encourage your users to copy the complete URI and paste it on his browser address bar

    thanks fellas for all your help.

    I will try to do that.

    I found another way last night!

    I solved the problem by developing some email templates and using php to read and send the templates instead of creating the xhtml in a textarea.

    Hope this makes sense and helps somebody.


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
  •