Send email using UCSD SMTP with a GMAIL-based address

Python
Author

Andrea Zonca

Published

April 13, 2026

If you have a GMAIL-based UCSD email address and need to send email programmatically or via an email client using SMTP, you can use Google’s SMTP servers.

First, you need to generate an App Password: Go to https://myaccount.google.com/apppasswords to get an app password.

Then, configure your application or email client with the following settings: