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
- Important TCP/UDP Port Numbers
- PHP script to convert text string to image
- Optimizing MySQL Rand() against Slowdowns
- PHP – How to get domain name from URL?
- How to filter & escape data from Injection attacks in PHP!
- Free PHP CAPTCHA Scripts
- Nokia Mobile Predictive Text Typing Tutorial
- Free Markup TextArea HTML Editor in Javascript
- Webmasterpals.com – New Social Network for Webmasters

