Can anybody point me in the direction of a good tutorial or pre written script for mailing many users from a database. Have been searching for the last two days and have got nothing good :(. Any help will be greatly appreciated. Either through gmail smpt or through a legitamate hosting site i just need sumthin to get this going. thanks

Consider SwiftMailer library, it works fine and once installed it's easy to use:

In particular check the send method and the batch mode at the end of the page.

The mail() function is not the best choice for large sets because it is resource expensive and it doesn't offer full control about the headers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.