this post was submitted on 19 Nov 2023
18 points (90.9% liked)

Programming

17668 readers
200 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
18
submitted 1 year ago* (last edited 1 year ago) by Rick_C137 to c/programming
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (5 children)

Is there a reason not to use PowerShell?

[–] Rick_C137 1 points 1 year ago (4 children)

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.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (2 children)

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.

[–] stewie410 3 points 1 year ago (1 children)

Are you also managing AD or other services in Linux to make PS more viable, or just in general?

[–] [email protected] 3 points 1 year 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.

load more comments (1 replies)
load more comments (1 replies)