<filename>apps/core/forms.py
from django import forms
from django.core.mail.message import EmailMessage
from django.forms.fields import EmailField


class ContactForm(forms.Form):
   name = forms.CharField(label='Nome', max_length=100)
   email = forms.EmailField(label='E-mail', max_length=100)
   subject = forms.CharField(label='Assunto', max_length=100)
   message = forms.CharField(label='Mensagem', widget=forms.Textarea())

   def send_mail(self):

      # Recebe os dados do 
      name = self.cleaned_data['name']
      email = self.cleaned_data['email']
      subject = self.cleaned_data['subject']
      message = self.cleaned_data['message']

      content = f'Nome: {name}\nE-mail: {email}\nAssunto: {subject}\nMensagem: {message}'

      mail = EmailMessage(
         subject=subject,
         body=content,
         from_email='<EMAIL>',
         to=['<EMAIL>'],
         headers={'Reply-To': email}
      )
      
      mail.send()