Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request Emailer's Fail to Send Reason be Logged #1899

Closed
bhsmither opened this Issue Mar 10, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@bhsmither
Copy link
Contributor

bhsmither commented Mar 10, 2018

In mailer.class.php, near line 215:

			$email_data = array(
				'subject' => $this->Subject,
				'content_html' => $this->_html,
				'content_text' => $this->_text,
				'to' => $email,
				'from' => $this->Sender,
				'result' => $result,
				'email_content_id' => $this->_email_content_id
			);

Request code to add to this array:

if ($result === false) $email_data['fail_reason'] = htmlentities($this->ErrorInfo, ENT_QUOTES);

Add the field to the CubeCart_email_log table (TEXT), and the admin skin template.

Instead of:

<i class="fa fa-times" title="{$LANG.common.no}"></i>

do this:

<i class="fa fa-times" title="{$log.fail_reason}"></i>

@abrookbanks abrookbanks self-assigned this Mar 13, 2018

@abrookbanks abrookbanks added this to the 6.2.0 milestone Mar 13, 2018

@abrookbanks

This comment has been minimized.

Copy link
Member

abrookbanks commented Mar 13, 2018

screen shot 2018-03-13 at 12 00 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.