Update core.php

fix phpmail sending by code issue