You are not logged in.
Pages: 1
I want to be able to have simple scripts email my gmail.
An example would be a script running out of cron every hour to warn me if space is getting full.
Looking at the postfix wiki, it has an example for local only mail. But quickly gets more complicated for anything external and starts talking about virtual mailboxes and stuff.
I don't need to receive incoming mail.
Searching on google, it seems the common answer is to use something like a gmail address with an api key to sent the emails.
Is that really the best answer?
I feel like there should be an easy way to just sent an email to my gmail, but not have any fancy configuration for other stuff.
Offline
well - for e-mail you always need to differ between the sender and the receiver: do you want to use a gmail account to send mails from to other receivers - or do you want to receive mails from others to your gmail account? for the latter you need a proper set up domain and mail server as google recently increased thier security policies for receiving mails
you can't just send an e-mail from you computer to google - as this how mail spam is done and often blocked by many isp
so unless you have your own domain and proper mail server to send mails from you need to use existing services - actually sending the is like using any other mail client: you need the credentials to establish a connection to the mail server and then just send a text mail
Offline
You can script mutt, but assuming you're using some GUI mail client or your browser, have a look at https://wiki.archlinux.org/title/Msmtp
Offline
Pages: 1