sending email from command line using hotmail

David Fletcher dave at thefletchers.net
Sun Feb 16 09:29:34 UTC 2025


On Sun, 2025-02-16 at 01:07 +0000, Mike Marchywka wrote:
> Is there some simple way to send emails from the command line without
> sendmail?

Hi Mike,

I've been using sendEmail for a good while now. You can use it from the
command line but I'm using it from a system call in C++ for some years
now, something like this:-

system
(
  "sendEmail -q "
  "-f me at example.com "
  "-t you at example.com "
  "-u Subject text "
  "-m \"Your message text here\""
);

Hope this helps.

Dave




More information about the ubuntu-users mailing list