Hola amigo, buena noche, en este caso puedes realizar tu script apoyándote de la clase PHPmailer, es muy práctica y funcional. De igual manera si estas utilizando PDO puedes utilizar la función MAIL (https://www.php.net/manual/es/function.mail.php).
Saludos.
Report
There was a problem reporting this post.
Block Member?
Please confirm you want to block this member.
You will no longer be able to:
See blocked member's posts
Mention this member in posts
Invite this member to groups
Message this member
Add this member as a connection
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.