---
schema_version: "1"
id: 5d53b241e75a829a0e76c3564b7d1ccf4b9108c549c35847848d032f0be5386a
title: tsm email
collection: tableau
version: current
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/current/zh-tw/server-linux/cli_email.md
canonical_url: https://help.tableau.com/current/server-linux/zh-tw/cli_email.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 0d8d9be9304d3eecb6b5f2a8f42ddd49d046f4fdd43237878c12f0cab4f2864c
description: Reference for the tsm email command to view and test the Tableau Server SMTP configuration.
---
[跳至主要內容](#main-content)

# tsm email

使用 `tsm email` 命令可檢視及測試您的 SMTP 組態。

有關設定 SMTP 的詳情，請參閱[設定 SMTP 設定](https://help.tableau.com/current/server-linux/zh-tw/config_smtp.htm)。

## tsm email test-smtp-connection

執行此命令以測試 STMP 連線。執行時，TSM 將嘗試與已針對 Tableau Server 所設定的 SMTP 伺服器建立連接。TSM 還將傳回連線狀態和 SMTP 組態的詳細資訊。

在某些情況下，該命令將傳回誤報狀態。例如，如果 Postfix SMTP 伺服器設定為需要 TLS，但 Tableau Server 未針對 TLS 進行設定，則會建立連線，並且 TSM 將回報連線成功。但是，在這種情況下，Postfix 實際上在 TSM 連後後會拒絕電子郵件。

### 概要

`tsm email test-smtp-connection [global options]`

## 全域選項

\-h, --help

可選。

顯示命令說明。

\-p, --password <password>

在會話不是活動狀態的情況下為必需，`-u` 或 `--username` 也為必需。

為在 `-u` 或 `--username` 中指定的使用者指定密碼。

如果密碼包括窗格或特殊字元，請將其括在引號中：

`--password 'my password'`

\-s, --server https://<hostname>:8850

可選。

對 Tableau 服務管理器使用指定的位址。URL 必須以 `https` 開頭（包括連接埠 8850），並使用伺服器名稱而不是 IP 位址。例如 `https://<tsm_hostname>:8850`。如果沒有指定伺服器，則假定為 `https://<localhost | dnsname>:8850`。

\--trust-admin-controller-cert

可選。

使用此旗標來信任 TSM 控制器上的自我簽署憑證。如需有關憑證信任和 CLI 連線的詳細資訊，請參閱[連接 TSM 用戶端](https://help.tableau.com/current/server-linux/zh-tw/tsm_overview.htm#Connecti)。

\-u, --username <user>

在會話不是活動狀態的情況下為必需，`-p` 或 `--password` 也為必需。

請指定使用者名稱。如果未包括此選項，則使用您登入所使用的認證執行該命令。