Continued work on php script, enabled local mail server to test script.