title: Getting the URL of a node in Drupal 7
body: <p><strong>Goal</strong>: To send an email with a list of URLs generated from nodes.</p>
  
  <p>In my custom module I have managed to get the node id which the user wants and I now want to get the URL of each node to put into my email.</p>
  
  <p>I searched the db and used google but I can't seem to find the right solution.</p>
  
  <p>It seems we need to construct the URL something like this:</p>
  
  <pre><code>&lt;?php
  global $base_url;
  $link=$base_url."// few more parameters 
  </code></pre>