PHPMailer sent but email not received #2622
-
So i write this simple function
But it didn't sent anything or my test email didn't get any email. Anyone can give me an idea why and how to solve it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You're not calling |
Beta Was this translation helpful? Give feedback.
You're not calling
isSMTP()
, which means PHPMailer will send using PHP's built-inmail()
function, which submits messages via a shell to a local mail server. After submitting a message successfully, the mail server is then responsible for onward delivery, and PHPMailer plays no part in that. So, to find out what is happening to your messages, check your local mail server's logs, usually somewhere like/var/log/mail.log
; any undelivered messages will probably be somewhere in/var/spool/mail
.