Skip to main content

Utility class for sending emails

Project description

Mail Sender

Classe responsável pelo envio de e-mails

Crie um template Template foo_bar.txt:

Olá, ${NOME_PESSOA}!

Tudo bem!

Tchau.

Crie uma classe para definir os atributos principais
class Data(MailSender): _HOST='0.0.0.0' _PORT=00 _MAIL_USERNAME='user@teste.com.br' _MAIL_PASSWORD='bar' _FROM='rem@teste.com.br' _TO='dest@teste.com.br' _SUBJECT='Foo Bar' _PATH_TEMPLATE=Path('foo_bar.txt') _TYPE_MESSAGE = 'html'

Chame o método send() para enviar Exemplo de utilização: Data().send('foo')

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mail-sender-1.0-1.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file mail-sender-1.0-1.0.tar.gz.

File metadata

  • Download URL: mail-sender-1.0-1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for mail-sender-1.0-1.0.tar.gz
Algorithm Hash digest
SHA256 716641c67547318bb42c67f289d00739deb27b71598e85025ae807225335267a
MD5 82cc3b9702c243e55fc0a2778faaf808
BLAKE2b-256 e6269d2dc93925fcd4810385b18751df63a5329634cf7ad5817091a1a1053ae9

See more details on using hashes here.

Supported by

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