If you just wanna send a mail by the way of a little project, PHPMailer is a simple way to achieve this.
Setting up a postfix server isn’t a newbie stuff (as it has something to do with DNS resolution, and in the other hand you’ll have security concerns about the server itself), as it sounds cumbersome for a little project. I guess it’s something you’ll do if you lead a corporate project so then you’ll need a complete infrastructure designed for mails.
In fact, you can send emails over SMTP using the built-in mail() function too, and you should learn to do that, but that’s not a quick way, that’s what PHPMailer encapsulates for you.
Question and answer is powered by AnsPress.io