Update sendemaillib.php

few fixes for consistency