X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=doc%2Fcompose.txt;h=7abdea47f49d0a18e16935abab0c28a369c282aa;hb=3b94163a44fd63151f63042abd8fd57b7cad13e4;hp=9cf0904e4d9804d3cb2f5f57fab86d70ddf622d9;hpb=b899bb854b1ba789969d001ea005af044ec5fbcf;p=squirrelmail.git diff --git a/doc/compose.txt b/doc/compose.txt index 9cf0904e..7abdea47 100644 --- a/doc/compose.txt +++ b/doc/compose.txt @@ -1,5 +1,25 @@ -Using the comp_in_new function -============================== +Creating Links to compose.php easily +==================================== + +makeComposeLink() PHP function helps to create links to the compose page +easily, taking into account the user's settings, "Compose in new window" and +"Use javascript". Here's how to use it: + +1) Build the last part of the URL as follows: + $comp_uri = 'src/compose.php?mailbox='.$mailboxbox.'&send_to='.urlencode($usermail); + +2) The display part of the link can be anything you like (such the name of the user): + $disp = 'The user's name'; + +3) Print it: + echo makeComposeLink($comp_uri, $disp); + +makeComposeLink() has been available since Squirrelmail 1.4.2. + + + +Using the comp_in_new javascript function +========================================= comp_in_new is the javascript function to popup a new compose window.