Mail recevied but no success message displayed
-
Hi,
When I send a mail with the form, I receive it but the success message isn’t displayed and the button style animating the dots.
I have a specific php configuration to send the email with SMTP that could ovewrite some properties i’ve setup to the gutena form block in gutenberg edior :
add_action('phpmailer_init', 'my_phpmailer_smtp');
function my_phpmailer_smtp(PHPMailer $phpmailer) {
$phpmailer->isSMTP();
$phpmailer->Host = 'ssl0.ovh.net';
$phpmailer->Port = 465;
$phpmailer->SMTPSecure = 'ssl';
$phpmailer->SMTPAuth = true;
$phpmailer->Username = '[email protected]';
$phpmailer->Password = '071300#RfDg@';
$phpmailer->From = "[email protected]";
$phpmailer->addReplyTo("[email protected]");
$phpmailer->SMTPDebug = 2; // temp
}I precise that before that php configuration everythings was working correctly (except that gutena form using the wp_mail function and the mail was received as junk).
I check in the console and found that there is an error when I click on the submit button : “SyntaxError: Unexpected non-whitespace character after JSON at position 4 (line 1 column 5)”
Thanks for help
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.