Skip to content

Instantly share code, notes, and snippets.

@mehdimehdi
Created November 7, 2011 23:37
Show Gist options
  • Save mehdimehdi/1346550 to your computer and use it in GitHub Desktop.
Save mehdimehdi/1346550 to your computer and use it in GitHub Desktop.
sales form backend
from django.core.mail import send_mail
def sales_form(request):
content = request.POST.get("content",None)
subject, from_email, to = 'subject', request.POST.get("from",None), ['[email protected]']
send_mail(subject, content, from_email, to)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment