S.login(mailserver_login, mailserver_password) S = smtplib.SMTP(mailserver_smtp, mailserver_port, timeout=15) Mailserver_password = base64.b64decode(stamp_configs) Geral_conf = general_path + "/nf"Ĭonn_pg = nnect(conn_pg_string)Įrror_message = "Erro ao tentar conectar ao banco de dados: ", eĬursor_pg = conn_pg.cursor(cursor_factory=)Ĭursor_pg.execute("""SELECT s_valor FROM t_parametro_cliente WHERE s_campo = 'smtp'""") Segue abaixo o script #!/usr/bin/env pythonįrom import MIMEMultipartįrom validate_email import validate_emailīin_path = os.path.dirname(os.path.realpath(_file_)) Porém, ele envia o espelho em anexo do tipo. Tenho um script que envia um espelho de pedido por e-mail.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |