Mailing with PHP

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

Mailing with PHP

Post 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
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Mailing with PHP

Post 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/.
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Mailing with PHP

Post 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.
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

Re: Mailing with PHP

Post by Live24x7 »

thanks Doug G

phplist - looks like this get me going :)
Post Reply