Page 1 of 1

Mailing with PHP

Posted: Tue Jun 05, 2012 3:35 pm
by Live24x7
I am pretty new to php and exuse me if this sounds too noob.

I need a mailing solution in PHP - something that goes beyond the simple phpmail function.
I am aware of cos like aweber and mailchimp but that is not what i am looking for.
This has to integrate with my existing code.

I need to implement mass mailers features like:

1) Automatically send mails based on certain evaluations to be true (for example: sending b'day mails)
2) Send reminder mails for some pending actions
3) batch processing features
4) Option for scaling the number of emails sent - bulk mailing based on certain evaluations.


Just point me to the things i should explore in this context.

one thing that come to my mind is cron jobs

Re: Mailing with PHP

Posted: Tue Jun 05, 2012 7:36 pm
by califdon
Live24x7 wrote:I need to implement mass mailers features like:

1) Automatically send mails based on certain evaluations to be true (for example: sending b'day mails)
2) Send reminder mails for some pending actions
3) batch processing features
4) Option for scaling the number of emails sent - bulk mailing based on certain evaluations.

one thing that come to my mind is cron jobs
PHP has a built-in mail() function that relies on having an installed and running mail SMTP mail server, normally on the same domain. It will take care of your first 2 points. I'm not sure what you mean by "batch processing features". PHP logic (loops, etc.) handles what I think you mean by that. I'm not sure what you mean by the last point, either.

You should read some tutorials like http://www.w3schools.com/php/php_mail.asp.

The Linux utility cron is a means for scheduling the running of a program or script on a chronological schedule, but otherwise has no special functionality for emailing.

There are other libraries, such as http://swiftmailer.org/.

Re: Mailing with PHP

Posted: Wed Jun 06, 2012 2:22 pm
by Doug G
There are open-source php mailing list applications like phplist. I've never used any, I don't know if they would do what you want or not.

Re: Mailing with PHP

Posted: Mon Jun 11, 2012 2:07 pm
by Live24x7
thanks Doug G

phplist - looks like this get me going :)