How can I send parameters of a query to the body of a message, and send it by email.
The e-mail is already sent, but I need to send parameters.
autorizar=AutorizacionDocumentos.objects.get(id=idDoc.id)
asunto = 'autorizaciòn'
mensaje = 'El siguiente mensaje es para notificar...'
msg = EmailMessage(asunto, mensaje, to=['[email protected]'])
msg.send()