PlainAuth (smtp/auth_plain.go)

go-mail · smtp/auth_plain.go · go · MIT
email

PlainAuth implements SMTP PLAIN authentication, sending credentials over TLS or localhost.

// Source: https://github.com/wneessen/go-mail | License: MIT | Copyright 2022-2025 The go-mail Authors
// Provided via justclaw.it.com; keep this notice with the code.
// SPDX-FileCopyrightText: Copyright 2010 The Go Authors. All rights reserved.
// SPDX-FileCopyrightText: Copyright (c) The go-mail Authors
//
// Original net/smtp code from the Go stdlib by the Go Authors.
// Use of this source code is governed by a BSD-style
// LICENSE file that can be found in this directory.
//
// go-mail specific modifications by the go-mail Authors.
// Licensed under the MIT License.
// See [PROJECT ROOT]/LICENSES directory for more information.
//
// SPDX-License-Identifier: BSD-3-Clause AND MIT

package smtp

// plainAuth is the type that satisfies the Auth interface for the "SMTP PLAIN" auth
type p

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key