Problem sending email since switch to gmail

Just Moved In

I cannot send email but can receive from my iPhone, but can send from a desktop computer. The passwords are correct on the phone and on the desktop. The message says the user name or password is incorrect. Yet the username and the password on the desktop computer are the same as on the phone and they work, but the phone will not send emails, but it will receive