Sending Email via Console With Custom From Address on Mac Using Gmail
If you want to send an email via the console on your Mac using a custom “From” address with Gmail, you can use the sendmail command. Gmail’s SMTP servers can be configured to allow sending emails from custom addresses. Here’s how you can send an email from the console with a custom “From” address using sendmail:
Prerequisites
-
You should have a Gmail account set up.






