added the check for php pears mail and net_smtp