How to change maildelivery from?

I’ve implemented sending invoices via API.

The email comes from [email protected] -
How can I change it to custom domain? [[email protected]]

Hi,

On the hosted platform the only option to change the from address is to send using Gmail.