Speed up development with full-stack environments for every branch.

Learn More

Sending an email [Python and Django]

2373 Runs 4935 Views 890 Copies
Saved

Saved

magicjohnson 10

magicjohnson
published 4 years ago

from django import forms

class ContactForm(forms.Form):
  subject = forms.CharField(widget=forms.TextInput(attrs={'size':'48', 'class':'form-control'}))
  email_from = forms.EmailField(widget=forms.TextInput(attrs={'size':'48', 'class':'form-control'}))
  email_to = forms.EmailField(widget=forms.TextInput(attrs={'size':'48', 'class':'form-control'}))
  message = forms.CharField(widget=forms.Textarea(attrs={'cols':50, 'rows': 5 , 'class':'form-control'}))
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).