PHP SDK for blastengine is SDK for sending email using blastengine.
https://blastengine.jp/
Blastengine\Client::initialize($your_user_id, $your_api_key);$transaction = new Blastengine\Transaction();
$transaction
->to($this->config["to"])
->from($this->config["from"]["email"])
->subject('Test subject')
->text_part('This is test email');
try {
$transaction->send();
} catch ( Exception $ex ) {
// Error
}$transaction = new Blastengine\Transaction();
$transaction
->to($this->config["to"])
->from($this->config["from"]["email"])
->subject('Test subject')
->text_part('This is test email')
->attachment('/path/to/image')
->attachment('/path/to/another');
try {
$transaction->send();
} catch ( Exception $ex ) {
// Error
}$transaction = new Blastengine\Transaction();
$transaction->delivery_id(100);
$transaction->get();
echo $transaction->delivery_type // => TRANSACTIONYou can access other information below.
vendor/bin/phpunit
vendor/bin/phpunit --filter testEmail
./vendor/bin/phpstan analyze --error-format friendly
This SDK is PHPStan level 7.
MIT.