Skip to content

Commit 778ab1f

Browse files
authored
Merge pull request #42 from sendpulse/refactor_smtp_send_mail
refactor smtpSendMail
2 parents 1bcb7ab + 61cb31b commit 778ab1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ApiClient.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,10 @@ public function smtpSendMail($email)
10651065
return $this->handleError('Empty email data');
10661066
}
10671067

1068-
$email['html'] = base64_encode($email['html']);
1068+
if(isset($email['html'])){
1069+
$email['html'] = base64_encode($email['html']);
1070+
}
1071+
10691072
$data = array(
10701073
'email' => serialize($email),
10711074
);

0 commit comments

Comments
 (0)