Hi everyone,

Before I was using SendEmail but it seem that it’s not supporting TLSv1.3 :/ too bad because the SMTP server that I would like to use require it.

Do you have any solution ( Windows ) to send emails (TLSv1.3 supported) trough the CLI? Not powerShell ! but CMD

    • Rick_C137@programming.devOP
      link
      fedilink
      arrow-up
      3
      ·
      7 months ago

      Thank you @[email protected] Seem great, I’ll keep it for later :)

      But not for what I need now, as

      Mutt is a small but very powerful text-based mail client for Unix operating systems

      and it’s a “full” client, I need just the SMTP functionality.

    • Rick_C137@programming.devOP
      link
      fedilink
      arrow-up
      1
      ·
      7 months ago

      yes, it’s been years that I’m using CMD and as I’m planning get rid of windows there is no point for me to learn it.

      • allywilson@sopuli.xyz
        link
        fedilink
        arrow-up
        2
        ·
        7 months ago

        I don’t think you need to learn it, you just need to use one command. Even from a CMD prompt you can invoke powershell and a powershell cmdlet in a one-liner:

        powershell send-mailmessage -from "[email protected]" -To "[email protected]" -subject "Test to me" -smtpserver My.Mail.Server.co.uk

      • MajorHavoc@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        edit-2
        7 months ago

        True, you’re certainly not forced to learn PowerShell if you’re about to switch to Linux.

        That said, PowerShell is my preferred shell on Linux.

        PowerShell is open source, works great on Linux, and is even one of the pre-installed shells on Ubuntu.

        And yes, I’m not sure what to think of all that, either. It’s weird. It’s also really useful.

          • MajorHavoc@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            7 months ago

            I’m not doing anything particularly specific to PowerShell - I just like the web-request module, and excellent JSON handler, because I do a decent amount of web API stuff from the command line.

            I could curl+awk+sed this stuff, but the equivalent PowerShell is so much faster to write, and more concise to maintain than i.e. my zshell solution would be.

            Even in a few places where I’m using zsh as my term, I’ll still call into PowerShell if I already have a nice piece of PowerShell that does what I need. The two interoperate well, but I lose the object oriented pipe once the data is back in Zsh, of course.