Jump to content
Sign in to follow this  

Sending SMTP email

Recommended Posts

Is PHPmailer still considered a good/best solution to sending emails via smtp or is there a native solution yet?

If not, is there a good reason why PHP hasn't implemented such?  Kind of like how we used to use some 3rd party library for password hashing (forgot the name), but now use password_hash() and password_verify().

I know there is PEAR Mail::send(), but the last time I researched the subject, seemed like PHPmailer was a better solution.  Any other recommendations?


Share this post

Link to post
Share on other sites

PHPMailer is still popular as far as I know, and is probably fine.  I prefer SwiftMailer personally.

As for why there is no native solution...probably just because there are already excellent third-party solutions and creating a well/full featured internal SMTP client would be more hassle than it's worth.

The password functions were added because it's a very common task and one that many people end up doing incorrectly which can have major consequences.  It's also something that would have been relatively easy to implement as native functions so the benefit of adding them was well worth the effort required to do so.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.