Advertisement
DcruzQ

Untitled

Apr 8th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. subject, from_email, to = 'Notificacion de MisClientes', 'misclientes@pescatun.alinet.cu', self.email
  2.       text_content = 'Este es un mensaje automatico por favor no responder'
  3.       html_content = get_template('clientes.html').render()
  4.       msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
  5.       msg.attach_alternative(html_content, "text/html")
  6.       msg.send()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement