def sendEmailContact(email_data):
server_smtp = descriptografar(configuracao["SENDMAIL"]["server_smtp"])
user_smtp = descriptografar(configuracao["SENDMAIL"]["email_smtp"])
password_smtp = descriptografar(configuracao["SENDMAIL"]["senha_smtp"])
porta_smtp = 587
email_to = CustomUser.objects.values('web_email').filter(web_empresa=webempresa_global, empresa_db='admin')
receive_email = email_to[0]['web_email']
subject = "Formulário de Contato"
html_content = render_to_string('send_mail.html', email_data)
#criando o email mas não envia
message = MIMEMultipart()
message['From'] = user_smtp
message['to'] = receive_email
message['Subject'] = subject
message.attach(MIMEText(html_content, 'html'))