If you copied your code exactly, this:
smtpServer="smpt.gmail.com";
Should really be this:
smtpServer="smtp.gmail.com";
You wrote smpt when it should be sm
tp. I'm not sure if this will solve your error, but it is one of them. You should also set the port for gmail to 587 I believe instead of the default.