Osama Ibrahim
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
@alexga I posted this question on stack overflow as well. And I posted the solution too. You can check it out here:
https://stackoverflow.com/questions/55796717/wp-mail-smtp-version-1-4-2-stopped-sending-emails
@alexga what error are you getting exactly?
Hello.
I use
wp_mail()to send email whenever my form data gets an exception.And no, I tried implementing the fix mentioned in the thread above but its not working.
Hi Slava,
Thank you for your response.I have selected “Other SMTP” and hostname is the IP of my client’s mail server.
And inside my plugin, I havewp_mail()like this:$to = $this->options['error_email']; $subject = 'AMCN Form Error'; $message = '<dl>'; $message .= "<dt>Error Logged:</dt> <dd>$err</dd>"; $message .= "<dt>Timestamp:</dt> <dd>$timestamp</dd>"; $message .= "<dt>Referrer:</dt> <dd>" . ($_SERVER['HTTP_REFERER']) . "</dd>"; $message .= "<dt>User:</dt> <dd>"; $message .= "$firstName $lastName\n<br>"; $message .= "$email\n<br>"; $message .= "$phone\n<br>"; $message .= "$billing\n</dd>"; $message .= "</dl>"; $headers = array('Content-Type: text/html; charset=UTF-8'); $send = wp_mail($to, $subject, $message, $headers);And yes, the test email is working fine.
- This reply was modified 7 years, 1 month ago by Osama Ibrahim. Reason: Trying to format the code
Viewing 4 replies - 1 through 4 (of 4 total)