-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added response content to error email
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
|