i'm in trouble with passing multiple lines through mailto: link. in case of small content message body "mailto" link is clickable and also open window for Outlook default mail reader. But in case of large content message body ,the mailto link couldnt clickable and also in some case full body content cannot passed to mail box, it take only limited content size. how solve this issue in PHP and Drupal. can you suggest any other method for this.
my code is following:-
$to= "XXX@mail.com";
$subject = "XXX"
$body = str_replace( array( '\'', '&','amp;','<p>','</p>','nbsp'), ' ', $str_body);
$body = htmlspecialchars($body);
$page.="<div>";
$page.= "<a href='mailto:{$to}?subject={$subject}&body={$body}'>";
$page.="</div>";