Skip to main content

Send Email

Command description

Send email from an account such as QQ Mail or 163 Mail to any email address.

Configure the SMTP server and port, username, and authorization code. The authorization code is not the mailbox login password.

You may need to obtain an authorization code again after changing your email login password.

How to obtain an authorization code:

Command Input Parameters

input parametersInput parameter typeDescription
SMTP ServerstrFor example, smtp.qq.com
SMTP Portint or str
Usernamestr
Authorization Codestr
RecipientsstrSupports multiple comma-separated addresses
CCstrSupports multiple comma-separated addresses
BCCstrSupports multiple comma-separated addresses
Subjectstr
Bodystr
htmlboolWhether to render the body as HTML; default: False
AttachmentsstrSupports multiple comma-separated file paths

Command Output Parameters

None