Apple mail can receive mail but won't send mail
My apple mail version 7.3 has never had any problems connecting with my gmail account, but recently whenever I try to send an email, it goes straight to the outbox and then a popup saying "Gmail cannot connect to the server" or something like that comes up. It asks me to enter my password, and I do and then it just pops up the same error again. I have tried changing my password and made sure I am entering it correctly but it just does not work. I can receive mail fine.
If anyone can help me out, it'd be greatly appreciated, thanks!
MacBook Pro, OS X Mavericks (10.9.4)