8000 smtpServer requires secure connection or client was not authenticated. the server response was: 5.7.0 must issue STARTTLS command first · Issue #8987 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

smtpServer requires secure connection or client was not authenticated. the server response was: 5.7.0 must issue STARTTLS command first #8987

@eben562012

Description

@eben562012

when i try the send mail using powershell mail server. thus send-mailmessage with commands like this

send-mailmessage -From "XXXXX" -Subject "hello world" -To "xxxx" -Body "hello world and welcome" -SmtpServer "smtp.gmail.com" -Port "587" and when i run this command. I get this issue

smtpServer requires secure connection or client was not authenticated. the server response was: 5.7.0 must issue STARTTLS command first.
any help will be much appreciated. thanks

Metadata

Metadata

Assignees

Labels

Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0