Adding email addresses
One aspect of sending emails to a small or large email list is passing the email addresses to the mail transport, like PHPMailer Pro.
PHPMailer Pro handles it nicely with the ability to take email addresses in any of four formats:
- Strings, with the option of multiple email addresses separated by a comma
- Indexed Arrays, with the array key as a numeric
- Associative Arrays, with the array key as a display name or as an email address
- Multi-dimensional Arrays, with unknown keys.
PHPMailer Pro has room for improvement in how it handles these four data types.
I will post a series of articles in the coming weeks and months with an entirely new project. I have an interesting name for this project, but for now the code name will be "Andy's Mailer".
I will start the articles with one on handling email addresses, email mailing lists, and email error lists.
Look for it soon!