I have a Ubuntu server (LAMP) and I need to send emails via PHP, however using my account in gmail, I do not want to have an email server of my own. I need to set one of two ways below to do this:
1 - Install postfix to redirect to my gmail account and use PHP's native mail function.
2 - Use a PHP library like PHPMailer to send email using my gmail account.
Doubt:
Which option would an experienced professional use? Why?