Send email with PHP



I am begginer in PHP and I would like to ask you how to send an email from a database with emails.Also,do I have to make changes in php.ini or sendmail.ini?

Thank you in advance.


Just fetch you data with PDO and use PHPMailer or Swiftmailer to send the mail.