sending email from command line using hotmail
mike marchywka
marchywka at hotmail.com
Sun Feb 16 09:22:37 UTC 2025
On 2/15/25 22:16, Robert Heller wrote:
> 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.
Now that you mention it I have a program mikemail for downloading
etc that uses libetpan but I never supported oauth2. On a quick
search it looks like libetpan supports oauth2 but I have
no idea how real that is.
Is there an example setting up send mail to talk through thunderbird?
Thanks.
> 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ÂÂ
>>
>>
>>
>>
>
More information about the ubuntu-users
mailing list