Skip to main content

Mail adapter for nonebot2

Project description

nonebot-adapter-mail

NoneBot-Adapter-Mail

✨ Mail Adapter ✨

license pypi python pre-commit

Configuration

Config mail adapter by modifying the .env or .env.* file.

MAIL_BOTS

  • id: The email address of the bot.
  • name: The name of the bot.
  • password: The password of the bot.
  • subject: The default subject of the email.
  • imap: The IMAP configuration of the bot.
    • host: The IMAP host.
    • port: The IMAP port.
    • tls: Whether to use TLS.
  • smtp: The SMTP configuration of the bot.
    • host: The SMTP host.
    • port: The SMTP port.
    • tls: Whether to use TLS.

Example:

MAIL_BOTS='
[
  {
    "id": "i@example.com",
    "name": "Name",
    "password": "p4ssw0rd",
    "subject": "Sent by NoneBot",
    "imap": {
      "host": "imap.example.com",
      "port": 993,
      "tls": true
    },
    "smtp": {
      "host": "smtp.example.com",
      "port": 465,
      "tls": true
    }
  }
]
'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_adapter_mail-1.0.0a2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

nonebot_adapter_mail-1.0.0a2-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_adapter_mail-1.0.0a2.tar.gz.

File metadata

  • Download URL: nonebot_adapter_mail-1.0.0a2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.20.1 CPython/3.10.10 Windows/10

File hashes

Hashes for nonebot_adapter_mail-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 630c06dd8ae56d4f2a2c0cb761c61b16d29fb49402fb8b37803542e67100ccde
MD5 ba6fe21219c5bb8569ffe954233732de
BLAKE2b-256 dfa23d374cf3cd5b66c4a9ff9b9bc3607ba6aef377d63fde0ccb9af1e90efd85

See more details on using hashes here.

File details

Details for the file nonebot_adapter_mail-1.0.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_adapter_mail-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 da661f699296a593624b3c2faf35bfe13ead5afb2e17bde1628697d09b6f3e28
MD5 a5d5a1c447381fb8b542634eb258d82b
BLAKE2b-256 b9d08d3eddefdb6c02b165a821193410a9db223ac390ab1b2c7759eff82af3c1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page