def contact(self):
subject = self.cleaned_data['subject']
from_email = self.cleaned_data['email']
message = self.cleaned_data['body']
try:
return send_mail(subject, message, from_email, settings.ADMINS)
except SMTPResponseException:
return False
评论列表
文章目录