E-Mail from the User's Service - Access User Name

You modified the question, but didn’t even put one line of code, you put just a little piece without formatting.

That little piece doesn’t look like valid python, but in order to tell you how to fix it, we need to see (at least) that full line of code.