Skip to content

levigutt/sendgrid-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

script for sending email to large list of recipients, without making contacts in sendgrid

WARNING!

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

use

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

todo

  • 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

About

send emails via sendgrid, without creating contacts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages