benphp Posted July 9, 2013 Share Posted July 9, 2013 $strEvalLink = "<p><a href='http://myserver/evals.php?CLID=3717&INID=93' target='_NewEval'>Please click here to fill out the evaluation for Test</a>.</p><p>Your feedback is important to us.</p><p>Thank You!</p>"; $headers = "Message-ID: <". time() .rand(1,1000). "@".$_SERVER['SERVER_NAME'].">". "\r\n"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers .= "$from_email" . "\r\n"; mail($to_email, $strEmailSubject, $strEvalLink, $headers); The result is an email with the link to: http://myserver/evals.php?clid=3717&inid=93 I even print the HTML on the page after sending the mail, and the HTML shows the correct Uppercase values. Link to comment https://forums.phpfreaks.com/topic/280003-mail-function-converting-hyperlinks-to-lowercase-why/ Share on other sites More sharing options...
benphp Posted July 9, 2013 Author Share Posted July 9, 2013 Strange behavior - so when I hover over the link in the Outlook email, the url shows all lower case. But if I click the link, it goes to the right web page with correct upper/lowercase text. Link to comment https://forums.phpfreaks.com/topic/280003-mail-function-converting-hyperlinks-to-lowercase-why/#findComment-1440070 Share on other sites More sharing options...
TOA Posted July 9, 2013 Share Posted July 9, 2013 HTML is not case-sensitive. For example: <A HREF... is the same as <a href ... Link to comment https://forums.phpfreaks.com/topic/280003-mail-function-converting-hyperlinks-to-lowercase-why/#findComment-1440071 Share on other sites More sharing options...
AbraCadaver Posted July 9, 2013 Share Posted July 9, 2013 On 7/9/2013 at 5:11 PM, TOA said: HTML is not case-sensitive. For example: <A HREF... is the same as <a href ... Variables are case sensitive: CLID=3717&INID=93 is not the same as clid=3717&inid=93 Link to comment https://forums.phpfreaks.com/topic/280003-mail-function-converting-hyperlinks-to-lowercase-why/#findComment-1440074 Share on other sites More sharing options...
TOA Posted July 9, 2013 Share Posted July 9, 2013 On 7/9/2013 at 5:24 PM, AbraCadaver said: Variables are case sensitive: CLID=3717&INID=93 is not the same as clid=3717&inid=93 I only read his first post and his last comment about the html. Jumped the gun. My bad. Link to comment https://forums.phpfreaks.com/topic/280003-mail-function-converting-hyperlinks-to-lowercase-why/#findComment-1440076 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.