PHP Emailer Script messing up characters

Discussion in 'PHP' started by Phil Vessey, Nov 30, 2006.

  1. #1
    Hi gang

    I have an email script which sends out emails which is working fine except certain characters are missed out when viewing the email. EG.

    http://www.yourdomain.com/index.php?action=view_topic&tid=1

    will appear as

    http://www.yourdomain.com/index.php?action=ew_topic&tid=

    The above is what happens when I view the email in outlook. However if I send it to gmail for example, i get a different output so its as if different email clients are parsing the string differently. Can anyone shed any light on this to help me out?

    Thanks
    Phil
     
    Phil Vessey, Nov 30, 2006 IP
  2. master06

    master06 Peon

    Messages:
    2,806
    Likes Received:
    121
    Best Answers:
    0
    Trophy Points:
    0
    #2
    maybe you should try urlencode function to write this address. for example you link is
    $url = 'http://www.yourdomain.com/index.php?action=view_topic&tid=1';
    after using urlencode
    $url = urlencode($url);

    Mustafa
     
    master06, Nov 30, 2006 IP