Email Error help me with syntax error

The previous line is missing a closing parenthesis.

...
msg = MIMEMultipart()
msg.attach(MIMEText(file("P:/Email/test.txt").read())) # line missing a parenthesis

sender = '[email protected]'
...