sending email from command line using hotmail
mike marchywka
marchywka at hotmail.com
Wed Feb 19 00:05:16 UTC 2025
On 2/18/25 16:37, mike marchywka wrote:
>
> On 2/16/25 12:32, Thomas Kaiser wrote:
>> On 16.02.25 16:58, mike marchywka wrote:
>>> On 2/16/25 04:59, Thomas Kaiser wrote:
>>>> On 16.02.25 02:07, Mike Marchywka 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.
>>>>>
>>>>>
>>>> Check out:
>>>> i
>>> I guess the real problem is oauth2 so I can use hotmail and probably
>>> others.
>> Check this:
>> https://wiki.archlinux.org/title/Msmtp#OAuth2_Setup
>>
> Thanks that ultimately gave me the info I needed to piece together
> something
>
> that works. Apparently it is ok to use another client ID so they
> suggested thunderbird
>
> which I found and copied. Then, using smtpsend.c test program with
> libetpan,
>
> I modified the code to call their oauth2 crap and load a file
> containing the acces token
>
> obtained using mutt_oath2.py .
>
> ./a.out -f "marchywka at hotmail.com" -u marchywka at hotmail.com -v access
> -s smtp.office365.com -S -p 587 marchywka at hotmail.com < foo
>
> Rube Goldberg must be alive and well at MSFT ROFL. Unfortunately the
> mutt_oauth2.py script
>
> generates a url that needs to go into a js enabled browser to get the
> code then used
>
> to get the access token. It doesn't seem to work with lynx or wget.
> Someone needs to tell
>
> MSFT that computers actually can AUTOMATE data processing instead of
> just creating
>
> jobs for tech support and catered seminar speakers.
>
> If I can figure out how to automate this without chrome, it turns out
> most of thunderbird seems
>
> to be written in js or similar, I am all set.
>
There might be an easier way to get the code but I was able to use
TooBib with
chromate in the "head" mode and it seems to put the code in the Toobib
debug information assuming that my hotmail account has been logged into
with whatever creds the Toobib chrome instance is using. F-ing incredible.
One of the community standards on the Toobib project will be anyone removing
profanity directed at MSFT will be banned ROFL.
>
> I haven't gotten much research done but I'm getting good at hacking.
>
> ...
>
>
>
>
>
>
>
>
>
>> and any search engine like google is your friend...
>>
>> Thomas
>>
>
More information about the ubuntu-users
mailing list