I have a classic LAMP platform (Debian, Apache2, PHP5 and MySQL) on a dedicated server.
I heard PHPMailer can send email without having installed SMTP. Is PHPMailer the best choice for this?
I have a classic LAMP platform (Debian, Apache2, PHP5 and MySQL) on a dedicated server.
I heard PHPMailer can send email without having installed SMTP. Is PHPMailer the best choice for this?
You can use phpmailer to send using the default php mail() function as well.
I recommend not trying to do things manually using the mail() function, use phpmailer instead and configure it to use mail().
I'd like to point out that even though you're not using an SMTP connection to send the mails yourself, the mail() function will use either an SMTP connection or the server's sendmail program to send out the emails anyways, so that will have to be configured for it to work correctly.
Without SMTP, you can use the PHP mail function: http://php.net/manual/en/function.mail.php
Yes, PHPMailer is a very good choice.
For example, if you want, you can use the googles free SMTP server (it's like sending from your gmail account.), or you can just skip the smtp part and send it as a typical mail() call, but with all the correct headers etc. It offers multipart e-mails, attachments.
Pretty easy to setup too.