script for sending email to large list of recipients, without making contacts in sendgrid
this requires manual handling of consent outside of sendgrid, as user preferences and unsubscriptions in sendgrid are not taken into account
make sure the email contains link or instructions for unsubscribing
copy config-sample.php to config.php,
and edit to contain a SendGrid API-key with permissions for sending email.
./sender.php [--dry-run [email protected] --template=d-xxxxxxxxxx] file
file must contain one email per line
- add cli options
- dry-run mode
- template-id
- html/plain-text
- default from and template in config
- parse csv or excel with dynamic data for each recipient