PHP script using mail vs smtp method for emailing
I have often confused about the which method to use for sending mails with a php script. I have used php mail() function in many projects and it is often slow, which is because this function opens sockets everytime you call this function. This doesnt work if you are mass emailing and smtp or sendmail is the way to go.
The best and fast way of sending email is using
- SMTP (faster)
- Sendmail (fast)
- Mail (average)
I would recommend using phpmailer or swiftmailer libraries for rapid development.
Similar Posts:
- Setup Postfix/Dovecot MailServer for Centos/RHEL
- WordPress – How to email user when post is published?
- Important TCP/UDP Port Numbers
- How to digitally sign and encrypt email free?
- PHP script to convert text string to image
- Quick & Easy Form Validation Tutorial with JQuery
- WordPress – Retrieve author/user details from Post ID
- Optimizing MySQL Rand() against Slowdowns
- PHP – How to get domain name from URL?
- How to insert HTML/BBcode tags to WordPress Comments Form

