Skip to main content

Timeline for Different SMTP based on domain

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
S Sep 26, 2017 at 17:25 history suggested Stephen CC BY-SA 3.0
HTTP_HOST is name only, no http
Sep 26, 2017 at 16:01 review Suggested edits
S Sep 26, 2017 at 17:25
Sep 26, 2017 at 15:07 vote accept Stephen
Sep 26, 2017 at 15:06 comment added Stephen ugh I figured out what was causing the error! $_SERVER['HTTP_HOST'] does NOT include the http(s). Leaving that off got it working! I credited you with the solution, but you might want to edit that above. Thanks again.
Sep 26, 2017 at 13:35 comment added Stephen I can't actually, my mail server requires a secure connection. But the error is on the wordpress server, not my mail server...
Sep 26, 2017 at 13:12 comment added Stephen Afam-Osemene I'm not sure why, can you try without SSL to see if that works. That is use $phpmailer->SMTPsecure = ''
Sep 26, 2017 at 12:19 comment added Stephen and this is super weird, because my cert is valid and my website serves securely
Sep 26, 2017 at 9:47 comment added Stephen Thanks, this looks great, but when I try it I get this error and no sending: stream_socket_enable_crypto(): SSL operation failed with code 1
Sep 26, 2017 at 8:46 history answered Stephen Afam-Osemene CC BY-SA 3.0