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. Quote 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. Quote 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 (edited) HTML is not case-sensitive. For example: <A HREF... is the same as <a href ... Edited July 9, 2013 by TOA Quote 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 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 Quote 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 (edited) 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. Edited July 9, 2013 by TOA Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.