HivePress + PHPMailer/SMTP: email sent, no confirmation feedback, spins for ever
-
Hi there,
I configured my Hivepress installation to use PHPMailer/SMTP with a custom configuration, mainly to override the “From:” feld. Here’s the code in
functions.php
(SMTP_* defs comes from config):add_action(
'phpmailer_init',
function ( $phpmailer ) {
$phpmailer->SMTPDebug = SMTP_DEBUG ? SMTP::DEBUG_SERVER : SMTP::DEBUG_OFF;
$phpmailer->isSMTP();
$phpmailer->Host = SMTP_HOST;
$phpmailer->Port = SMTP_PORT;
$phpmailer->Username = SMTP_USER;
$phpmailer->Password = SMTP_PASS;
$phpmailer->From = SMTP_FROM;
$phpmailer->FromName = SMTP_FROMNAME;
$phpmailer->SMTPAuth = SMTP_AUTH;
$phpmailer->SMTPSecure = SMTP_SECURE ? PHPMailer::ENCRYPTION_SMTPS : '';
$phpmailer->Timeout = SMTP_TIMEOUT;
}
);Emails are sent and delivered but never confirmed on the form page (no [green] feedback box appears), the spinner stays on forever, the page doesn’t reload. No debug log message on the server side. The Firefox console shows:
Object { code: "invalid_json", message: "The response is not a valid JSON response." }
code: "invalid_json"
message: "The response is not a valid JSON response."
<prototype>: Object { … }
__defineGetter__: function __defineGetter__()
__defineSetter__: function __defineSetter__()
__lookupGetter__: function __lookupGetter__()
__lookupSetter__: function __lookupSetter__()
??__proto__:
??constructor: function Object()
?hasOwnProperty: function hasOwnProperty()
?isPrototypeOf: function isPrototypeOf()
?propertyIsEnumerable: function propertyIsEnumerable()
?toLocaleString: function toLocaleString()
??toString: function toString()
??valueOf: function valueOf()
<get __proto__()>: function __proto__()??
<set __proto__()>: function __proto__()
index.js:1:6726Any idea why?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.