Skip to main content

开箱即用的邮件发送包

Project description

simple-email

简易的发送邮件脚本,通过封装,可以发送带附件的邮件.

demo

import Simple_email
## 发送邮件
1.填写邮箱配置
    host = 'xx.xx.xx.xx'
    port = 110
    user = ''
    pass_ = ''
2.填写邮件配置
    title = ''
    body = ''
    attachment = ['']
    sender = ''
    to = ['']
    cc = []
3.发送邮件
    se = SenEmail(host=host,port=port,user=user,pass_=pass_)
    se.send_email(title=title, body=body, attachment=attachment, sender=sender, to=to, cc=cc)

## 接收邮件正文,附件,邮件头.
    se_server = SenEmail(host=host,port=port,user=user,pass_=pass_)
    class AB(GetEmail):
        def run():
            '重写run()方法'

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

simple_email-0.0.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

simple_email-0.0.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file simple_email-0.0.4.tar.gz.

File metadata

  • Download URL: simple_email-0.0.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.7

File hashes

Hashes for simple_email-0.0.4.tar.gz
Algorithm Hash digest
SHA256 41cc229449da48199dea2c3add289013e077ceb86762b711e9b1747144f3ae68
MD5 2117cc62dd7cda6e3ced87683db23f0f
BLAKE2b-256 42e6309701c981e1cbd0adc5418f1ed52a35af98f779f98cfec3f3f0f53f3fc0

See more details on using hashes here.

File details

Details for the file simple_email-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: simple_email-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.7

File hashes

Hashes for simple_email-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aeb8fe77769cd961c9ca5572aebfd0cccef3885a6ec7afac10def8e7f40e35d9
MD5 5c804ca080128cb7140f0e89da13b264
BLAKE2b-256 876832fdee20cab7f13bc5116b6b97a2b38c684286e1d35c1c095dbbe64262f4

See more details on using hashes here.

Supported by

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