通过指定的SMTP服务器发送电子邮件的命令行工具。
项目描述
特性
HTML和/或TXT内容。
TLS支持。
多个附件。
洪水 - 通过一个连接发送相同的邮件多次。
安装
pip install emailsender
用法
emailsender -h
usage: emailsender [-h] [--host HOST] [--port PORT] --login LOGIN --password PASSWORD [--sender SENDER] [--to TO] --subject SUBJECT --text TEXT [--html HTML] [--tls] [--debuglevel DEBUGLEVEL] [--attachments ATTACHMENTS] [--flood FLOOD] Send email through specified SMTP server. optional arguments: -h, --help show this help message and exit --host HOST SMTP host (default: beta.debugmail.io) --port PORT SMTP port (default: 9025) --login LOGIN Auth login (default: None) --password PASSWORD Auth password (default: None) --sender SENDER Sender email address (default: john.doe@example.org) --to TO Receiver email address (default: jane.doe@example.org) --subject SUBJECT Email subject (default: None) --text TEXT Email body (plain text) (default: None) --html HTML Email body (html) (default: ) --tls Use TLS if specified (default: True) --reply-to REPLY_TO Reply-To field in email (default: None) --debuglevel DEBUGLEVEL Debug level (default: 0) --attachments ATTACHMENTS One or few files to attach (default: None) --flood FLOOD Count of messages send (through one connection) (default: 1)
用法示例
emailsender --host="debugmail.io" --login="john.doe@example.org" --password="very secret" --subject="Test subject" --text="Test message" --html="<h1>Wow, so electronic, very mail</h1>"
带有附件
emailsender --login="john.doe@gmail.com" --password="123123" --port="25" --host="debugmail.io" --text="Text content" --html="<h1>HTML content</h1>" --subject="test" --attachments="/tmp/attachment1.txt" --attachments="/tmp/attachment2.txt"
许可证
MIT许可证 (MIT)
版权 (c) 2015 Yuri Shikanov
在此特此授予,免费,任何获得此软件及其相关文档文件(“软件”)副本的人(“任何人”),在不限制包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或出售软件副本的权利,并允许向软件提供的人这样做,前提是遵守以下条件
上述版权声明和本许可声明应包含在所有副本或实质性部分中。
本软件按“原样”提供,不提供任何明示或暗示的保证,包括但不限于适销性、针对特定目的的适用性和非侵权性。在任何情况下,作者或版权所有者均不对任何索赔、损害或其他责任负责,无论此类索赔、损害或其他责任是基于合同、侵权或其他方式,源于、因或与软件或软件的使用或其他方式有关。
项目详情
关闭
emailsender-0.1.3.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 5e4caf041fd74792999ed5b9179104bf875bc1391a134eb26c809098d9a9d205 |
|
MD5 | d9d00c8abbea556cddea2dd637195521 |
|
BLAKE2b-256 | ac51696fa9b1a5a65a6f0c44c28201f6ad7ff56f5aaaa5ba65f725e9393a4fd5 |