Base fuctions added, need to test on server with PHPMail support