title: Dynamically Sending Email
body: <p>I have email verification working in Django, it sucessfully sends an email to inbox when I click the submit button at the bottom of the signup page, but the only problem is that it does not yet have the function where it sends an email to the address of the user who just signed up, instead, it only sends the email to the email address hard coded in the views .py file .</p>
  <p><strong>Signup page:</strong>
  [![Signup page][1]][1]</p>
  <p><strong>views.py</strong></p>
  <pre><code>from django.core.mail import EmailMessage
  
  email = EmailMessage(
      'Test', #email subject
      'Hello,'
      ' This is the Robo Depot team. We wanted to let you know your 
      account is confirmed.'
      ' Thank You for joining the Robo Depot userbase.', #email body
      '*********', #not sure what this does
      ['******', '******', 
      '***********'], #recipients
  reply_to=['hignuff@gmail.com'],
  headers={'Message-ID': 'foo'},
  )
  email.send(fail_silently=False)
  </code></pre>
  <p><strong>Settings.py</strong></p>
  <pre><code># Email
  EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  EMAIL_HOST = 'smtp.gmail.com'
  EMAIL_USE_TLS = True
  EMAIL_USE_SSL = False
  EMAIL_PORT = 587
  EMAIL_HOST_USER = '**********'
  EMAIL_HOST_PASSWORD = '*****'
  </code></pre>
  <p><strong>register.html</strong></p>
  <pre><code>  &lt;button id=&quot;signup-btn&quot; type=&quot;submit&quot; class=&quot;mt-3 btn btn- 
    primary&quot; EmailMessage/cart/view.py&quot;&gt;
        Submit
    &lt;/button&gt;
  </code></pre>
  <p>I don't even know where to begin here. I think I need a get function to pull the value from the email address form field, but I have no clue how I would even get that. Anyone have any idea?</p>