Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit 187db55

Browse files
Fixes a bug where api uri was wrong for sending emails
1 parent ac935db commit 187db55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public static function sendToContact($email, $templateId, array $tokens = [], $h
8888

8989
$api = self::getApiInstance();
9090

91-
$baseUrl = sprintf('contacts/%s/contact/%s/send', $templateId, $contactId);
92-
$htmlUrl = sprintf('contacts/%s/contact/%s/send-content', $templateId, $contactId);
91+
$baseUrl = sprintf('emails/%s/contact/%s/send', $templateId, $contactId);
92+
$htmlUrl = sprintf('emails/%s/contact/%s/send-content', $templateId, $contactId);
9393

9494
return $api->makeRequest($html === true ? $htmlUrl : $baseUrl, $tokens, 'POST');
9595
}

0 commit comments

Comments
 (0)