Mail adapter for nonebot2
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nonebot_adapter_mail-1.0.0a3.tar.gz
.
File metadata
- Download URL: nonebot_adapter_mail-1.0.0a3.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.20.1 CPython/3.10.10 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fcf839dbb2dba3bdc6f89fc41cd88fd38cdff766fd8317ceb4c0b1b1c87bad4 |
|
MD5 | 040e1dcab8606a7f0a53b5f48da969bc |
|
BLAKE2b-256 | e57699b9b5fc2fd0e0d94ab35980c1a3561b6c5c432313a6c39cb20e2d7c2054 |
File details
Details for the file nonebot_adapter_mail-1.0.0a3-py3-none-any.whl
.
File metadata
- Download URL: nonebot_adapter_mail-1.0.0a3-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.20.1 CPython/3.10.10 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e3d08150b65c8c4957d4e87665363b6bcbb5e3e84532fe98e0ba9c166593bc0 |
|
MD5 | b4b363e29250911c4cf60ca8ca8a41c7 |
|
BLAKE2b-256 | f4a529d67049f0e670731bce87c0c8fa60287645070afce36ed59521b279491e |