function getFile($localPath, $remotePath)
{
if (file_exists($localPath) && is_readable($localPath)){
return file_get_contents($localPath);
} else if($attach['remote']) {
return file_get_contents($remotePath);
} else {
showmessage('attachment_nonexistence');
}
}