Remove SPF notice

[MAILPOET-2867]
This commit is contained in:
Pavel Dohnal
2020-04-21 13:42:08 +02:00
committed by Veljko V
parent df3a429c94
commit e5639d1adb
11 changed files with 1 additions and 149 deletions

View File

@@ -1,23 +0,0 @@
import MailPoet from 'mailpoet';
import _ from 'underscore';
const getErrorMessage = (senderAddress) => `<h3>${MailPoet.I18n.t('spfCheckTitle')}</h3>
<p>${MailPoet.I18n.t('spfCheckMsgWhy').replace('%s', _.escape(senderAddress))}</p>
<p>${MailPoet.I18n.t('spfCheckMsgEdit').replace('%s', '<em>include:spf.sendingservice.net</em>')}</p>
<p><a class="button button-primary" href="https://kb.mailpoet.com/article/151-email-authentication-spf-and-dkim" target="_blank">${MailPoet.I18n.t('spfCheckReadMore')}</a></p>`;
const checkSPFRecord = () => MailPoet.Ajax.post({
api_version: window.mailpoet_api_version,
endpoint: 'services',
action: 'checkSPFRecord',
data: {},
}).fail((response) => {
if (response.meta.sender_address) {
MailPoet.Notice.system(
getErrorMessage(response.meta.sender_address),
{ static: true, scroll: true, id: 'spf_check_error' }
);
}
});
export default checkSPFRecord;