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

Programming

22144 readers
10 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
 

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 2 years ago (5 children)

Is there a reason not to use PowerShell?

[–] [email protected] 1 points 2 years 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] 2 points 2 years 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

load more comments (3 replies)
load more comments (3 replies)