Maybe.is my English the problem...i meat:Are you replacing these lines with your site specific arguments or are you using them as is;
FROM="your-gmail-address"
AUTH="your-gmail-username"
PASS="your-gmail-password"
FROMNAME="Your Router"
TO="your-email-address"
PASS is the google password for the account you are sending the email from, etc.
I mean no offence here, but I am getting the impression that your scripting skills/knowledge are not quite there. That's OK, we all start somewhere. It is just I don't think I am the right person to help at this point.
To your other question re the app statistics. I do not know where they are stored, or how so the quick answer is no.
I the script which I posted i known where place username and password...
But I want to use yours, and there aren't the "variables" before the code..