Skip to main content

๐Ÿ“ง Email API Reference

Sub-package: poemail | Install: pip install poemail Import: import office or import poemail

send_emailโ€‹

ParameterTypeRequiredDescription
keystrYesEmail authorization code
msg_fromstrYesSender
msg_tostrYesRecipient
msg_ccstrNoCC
attach_fileslistNoAttachment list
msg_subjectstrNoSubject
contentstrNoBody
hoststrNoqq / 163 / gmail
portintNoDefault 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']
)
AI ๅŠžๅ…ฌๆ•ˆ็އ่ฏพ
35 ่ฎฒ AI ่‡ชๅŠจๅŒ–ๅŠžๅ…ฌๅฎžๆˆ˜่ฏพ็”จ Python + AI ๅค„็† Excelใ€Wordใ€PDFใ€้‚ฎไปถ็ญ‰ๅŠžๅ…ฌๅœบๆ™ฏใ€‚
ๅŽปๅญฆไน