Using Javascript in php

mail() isn’t particularly suited to getting info about email sending (mail() hands over the email to your sendmail executable and that’s it). therefore you should use one of the existing email libraries (e.g. SwiftMailer, PHPMailer) that can easily send email via SMTP.

PHP has an email filter that does a better job at that.

1 Like