You can set it either way, you can set Gmail to send it itself in which case some email clients will show
photon@gmail.com on behalf of
photon@cp.com, or you can put in your other email provider's SMTP server credentials and it'll send through that so it looks like it comes from
photon@cp.com