Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eggplantSword's avatar

PHPMailer sending emails from different email host

Hey guys, I'm trying to send an email with PHPMailer but I get a 500 error without any real explanation, this is a singular php page so I don't have any logs.

The email is custom so not like a gmail account, so I'm unsure if my config is wrong here. How can I get this to send an email that comes from [email protected]?

0 likes
1 reply
gych's avatar

Are your DNS records correct and ave you already tried to use port 587 instead of 465 ?

Please or to participate in this conversation.