I want a script that will send emails to all my customer database. However, I need to be able to customize the emails somewhat to each customer. I can write the script for that easily though, I just need the script that will actually send the email to the customers, presumable through some sort of while loop.
I have tried doing this before with PHP's mail() function, and it worked, except that function seemed unreliable, as it would not deliver to all recipients.
Please also let me know why mail() function doesnt always work, and why your script will accomplish what is required.
I DO NOT WANT TO USE MAILCHIMP OR ANYTHING SIMILAR, I WANT MY OWN CUSTOM EMAIL SERVICE.