๐ง Email API Reference
Sub-package:
poemail| Install:pip install poemailImport:import officeorimport poemail
send_emailโ
| Parameter | Type | Required | Description |
|---|---|---|---|
key | str | Yes | Email authorization code |
msg_from | str | Yes | Sender |
msg_to | str | Yes | Recipient |
msg_cc | str | No | CC |
attach_files | list | No | Attachment list |
msg_subject | str | No | Subject |
content | str | No | Body |
host | str | No | qq / 163 / gmail |
port | int | No | Default 465 |
receive_emailโ
Receive emails.
Examplesโ
import office
office.email.send_email(
key='your_auth_code',
msg_from='your@qq.com',
msg_to='target@qq.com',
msg_subject='Test',
content='Hello',
attach_files=['./report.pdf']
)
- ๐ Usage Guide โ
- ๐ฆ PyPI: poemail
AI ๅๅ
ฌๆ็่ฏพ
35 ่ฎฒ AI ่ชๅจๅๅๅ
ฌๅฎๆ่ฏพ็จ Python + AI ๅค็ ExcelใWordใPDFใ้ฎไปถ็ญๅๅ
ฌๅบๆฏใ
ๅปๅญฆไน