sending email from command line using hotmail
Robert Heller
heller at deepsoft.com
Sun Feb 16 03:16:19 UTC 2025
I take it you have a script that wants to send an E-Mail.
The "easiest" option is to use the /usr/sbin/sendmail program that comes with
most MTAs and install a MTA set up with a "smart host". I know that Sendmail
and Postfix support that. I don't know about other MTAs (eg exim, etc.). The
smart host set up has your local (eg home "server") behaving like E-Mail
"client" (ala like Thunderbird) and connecting to your E-Mail hosting service
(eg Hotmail) using the mail submission port, complete with your authorization
creds.
Otherwise you are going to have to "re-invent" the wheel: roll your own
"client" program. There are mail-sending *libraries* for various programming
environments (eg Perl, Python, Tcl, etc.). I don't think there is a CLI tool
other then the /usr/sbin/sendmail program I mentioned above, which is specific
to the MTA.
At Sun, 16 Feb 2025 01:07:32 +0000 "Ubuntu user technical support,? not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
>
> Is there some simple way to send emails from the command line without sendmail?
> I was using neomutt but can't get it to work with hotmail any more and gave
> up on the oauth2 stuff. Thunderbird words but I can't find a headless
> mode to get to work. I can use the marionette or debug port as I do in other
> cases with chrome but can't find any documentation although I could connect
> with wscat I can't do anything.
>
> Thanks.
>
>
> Â Mike MarchywkaÂ
> 157 ZacharyÂ
> Talking Rock GA 30175
> was 44 Crosscreek Trail Jasper GA 30143
> was 306 Charles Cox Drive Canton, GA 30115
> 470-758-0799
> 404-788-1216Â
>
>
>
>
--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller at deepsoft.com -- Webhosting Services
More information about the ubuntu-users
mailing list