mail function

mail function working, but reloading sends email agian, which is not
what i want