added the php mailing script and errors etc