Jump to content

SMTP vs. mail()


rem

Recommended Posts

[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.
Link to comment
https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/#findComment-86504
Share on other sites

[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...
Link to comment
https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/#findComment-86611
Share on other sites

  • 2 weeks later...
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.
Link to comment
https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/#findComment-94716
Share on other sites

[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!
Link to comment
https://forums.phpfreaks.com/topic/19784-smtp-vs-mail/#findComment-94727
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

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.