Skip to content

Commit 11473bb

Browse files
authored
Merge pull request #68 from sendpulse/resolve_smtpSendMail
fixed resend smtp
2 parents fb9a680 + 0685d45 commit 11473bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ApiClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,12 +1092,13 @@ public function smtpSendMail($email)
10921092
return $this->handleError('Empty email data');
10931093
}
10941094

1095+
$emailData = $email;
10951096
if (isset($email['html'])) {
1096-
$email['html'] = base64_encode($email['html']);
1097+
$emailData['html'] = base64_encode($email['html']);
10971098
}
10981099

10991100
$data = array(
1100-
'email' => serialize($email),
1101+
'email' => serialize($emailData),
11011102
);
11021103

11031104
$requestResult = $this->sendRequest('smtp/emails', 'POST', $data);

0 commit comments

Comments
 (0)