Skip to content

Commit

Permalink
Merge pull request #19 from ppavlovic/master
Browse files Browse the repository at this point in the history
MailerQ: added 'pool' option to send a message via specific IP pool
  • Loading branch information
ppavlovic committed Feb 27, 2024
2 parents 5823482 + 5287907 commit a1b0583
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Message/MailerQ/Rest/MessageFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class MessageFacade
const TO = 'to';
const TOKEN = 'token';
const URL = 'url';
const POOL = 'pool';
const X_NZ_TAGS = 'X-NZ-Tags';

/**
Expand Down Expand Up @@ -56,6 +57,10 @@ public static function convert(\G4\Mailer\Message $message, array $options)
$body[self::SMARTHOST] = $options[self::PARAMS][self::SMARTHOST];
}

if (isset($options[self::PARAMS][self::POOL])) {
$body[self::POOL] = $options[self::PARAMS][self::POOL];
}

if ($message->getLogId()) {
$body[self::MIME][self::HEADERS][self::HEADER_MAILERQ_LOGID] = $message->getLogId();
}
Expand Down

0 comments on commit a1b0583

Please sign in to comment.