Skip to content

Commit

Permalink
added response content to error email
Browse files Browse the repository at this point in the history
  • Loading branch information
notyoyoma committed May 8, 2017
1 parent 5c18eb7 commit 7ea1d61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmsplugin_remote_form/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ def handle_response(self):
error_email_addresses = [x.strip() for x in self.instance.error_notification_emails.split(',')]
message = EmailMultiAlternatives(
"Form Submission Error",
'There was a problem with a form-submission on:\n\n%s\n\nView the record:\n\n%s' % (
'There was a problem with a form-submission on:\n%s\nView the record:\n%s\nContent:\n%s' % (
self.request.build_absolute_uri(),
self.request.build_absolute_uri(reverse('admin:cmsplugin_remote_form_contactrecord_change', args=(self.saved_record.id,)))
self.remote_response.content
),
'[email protected]',
error_email_addresses,
Expand Down

0 comments on commit 7ea1d61

Please sign in to comment.