Skip to content

PHPMailer sent but email not received #2622

Answered by Synchro
farhan-hafizh asked this question in Q&A
Discussion options

You must be logged in to vote

You're not calling isSMTP(), which means PHPMailer will send using PHP's built-in mail() 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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@farhan-hafizh
Comment options

@Synchro
Comment options

@farhan-hafizh
Comment options

@Synchro
Comment options

Answer selected by farhan-hafizh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants