fixed email redirect , config for mysql