-1

My friend has got a e-commerce website where users can choose to receive mail with the new offers. So he asked to me to create a system to send them an email.

How can I with php send an email to all the people in the mailing list? I know that editing the php.ini I can send mail from my personal email, like GMAIL, but it has a maximum number of mails for day.

So what is the right way?

shinjuo
  • 20,498
  • 23
  • 73
  • 104

1 Answers1

0

The right way to do this is with SMTP.

http://www.jvfconsulting.com/blog/php-mail-function-vs-smtp-guaranteed-delivery/ explains that the standard php mail function sends mail, but your mails can be heavily blocked by anti-spam mechanisms of ISPs.

There are many prebuilt solutions, PHPMailer being one of them. Please see this link as well: send email using Gmail SMTP server through PHP Mailer

Community
  • 1
  • 1
Adam T
  • 675
  • 8
  • 22
  • Thank's for answering. I'm looking for PHPMailer, but i think that I have to look also for an email that allow me to send more than 200 email for days like Gmail. is it right? – cavolo fiore Aug 06 '15 at 13:03
  • Using phpmailer you can send directly using php defaul mail function which does not require any email. – Sabbir Ahmed Sourove Aug 06 '15 at 13:29
  • If you're looking to send a large volume of mail, you should do some research into a 3rd-party application `mailing list` tool perhaps. – Adam T Aug 06 '15 at 13:30