Skip to content

Commit f9574ed

Browse files
committed
added test for sandbox for http:
1 parent e75a5a3 commit f9574ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mailer.http.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ protected function get_request_body()
136136
$body['content']['attachments'] = $attachments;
137137
}
138138

139+
if (isset($body['content']['from']['email']) && SparkPost::is_sandbox($body['content']['from']['email'])) {
140+
$body['options']['sandbox'] = true;
141+
}
142+
139143
$body = apply_filters( 'wpsp_request_body', $body);
140144

141145
return $body;

0 commit comments

Comments
 (0)