rem Posted September 5, 2006 Share Posted September 5, 2006 Hi,I'm currently developing a PHP application and I was wondering about which method to send bulk emails to subscribers is better: SMTP or mail()?I'm using phpmailer class and need this to work smoothly for large lists. Any advice? Thank you very much!Regards,Remus. Quote Link to comment https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/ Share on other sites More sharing options...
ober Posted September 5, 2006 Share Posted September 5, 2006 .... SMTP is the protocol. mail() is a PHP function. PHPMailer is a class.Maybe you should understand what you're doing before you ask questions. Quote Link to comment https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/#findComment-86500 Share on other sites More sharing options...
rem Posted September 5, 2006 Author Share Posted September 5, 2006 [quote author=ober link=topic=106968.msg428554#msg428554 date=1157474195].... SMTP is the protocol. mail() is a PHP function. PHPMailer is a class.Maybe you should understand what you're doing before you ask questions.[/quote]Ok, here's the thing: on phpmailer class, there's an option to either use the PHP mail() function, a SMTP server by providing an user and password if the server needs authentication or sendmail. I understand very well what am I doing, just need a professional's opinion on this matter on what's the better aproach:Should I email subscribers by using the PHP mail() function or by using the SMTP server option of phpmailer since sendmail is not a viable option? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/#findComment-86504 Share on other sites More sharing options...
ober Posted September 5, 2006 Share Posted September 5, 2006 Well, do you have an IP address of the SMTP server? I'd definatley go that route if you have the information. Quote Link to comment https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/#findComment-86522 Share on other sites More sharing options...
rem Posted September 5, 2006 Author Share Posted September 5, 2006 [quote author=ober link=topic=106968.msg428577#msg428577 date=1157476988]Well, do you have an IP address of the SMTP server? I'd definatley go that route if you have the information.[/quote]yes, i do have an IP address of the SMTP server, as well as host name, username and password. so, seems this would be the best choice, isn't it? i was only concerned about the slow response I get from the server when emails are sent... and I did tested it with just a few, what about when it'll be in production and more emails will be involved?Thanks a lot, really appreciate it... Quote Link to comment https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/#findComment-86611 Share on other sites More sharing options...
steveclondon Posted September 19, 2006 Share Posted September 19, 2006 How have you got on with this. I to am wondering if I should use the mail() function or class to email my members when an advert is placed. This could be from a few hundred to several thousand. Would like to know how you got on and what you decided to do and which class you have used. Quote Link to comment https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/#findComment-94716 Share on other sites More sharing options...
rem Posted September 19, 2006 Author Share Posted September 19, 2006 [quote author=steveclondon link=topic=106968.msg437305#msg437305 date=1158681882]How have you got on with this. I to am wondering if I should use the mail() function or class to email my members when an advert is placed. This could be from a few hundred to several thousand. Would like to know how you got on and what you decided to do and which class you have used. [/quote]I finally decided to go with PHPMailer ( http://phpmailer.sourceforge.net/ ). It's very easy to work with and it had no issues using my SMTP server with. I heard this should be better than mail() function, don't know exactly why becasue I don't understand how a SMTP server is working, but decided to go with people smarter than I am :)Good luck! Quote Link to comment https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/#findComment-94727 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.