How do I print full path? My current code works:

&lt;img src="&lt;?php print $base_url . '/' . drupal_get_path('theme', 'lapost'); ?&gt;/images/cart-template-logo.png" /&gt;


But if you check in source it prints only /sites/all/themes/lapost/images/cart-template-logo.png

It works if you load image on-site, but it also gets sent to email and when mail arrives it gives dead image shortcut, because the path is missing the www.webaddress.com part.
You can use the url():

$imgurl = drupal_get_path('theme', 'YOURTHEME') . '/images/image.png';
$final_url = url($imgurl, array('absolute' =&gt; TRUE));


This will provide a url like http://example.com/sites/all/themes/YOURTHEME/images/image.png