Quantcast
Channel: How to send mail from the command line? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 18

Answer by Steven Penny for How to send mail from the command line?

$
0
0

You can use cURL. Take a file like this:

From: Sunday <sunday@gmail.com>To: Monday <monday@gmail.com>Subject: TuesdayWednesday

and send it:

curl \--netrc \--mail-rcpt monday@gmail.com \--upload-file a.txt \smtps://smtp.gmail.com

https://myaccount.google.com/lesssecureapps


Viewing all articles
Browse latest Browse all 18

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>