Not getting email notifications from topic
I use novu in my laravel app. I configured api key and uri. I created a topic:
$novu->createTopic([
'key' => 'seller_registration_notification',
'name' => $name,
]);
The result is successful.
[2024-02-09 10:16:23] local.INFO: [NovuService][Success]:createTopic {"id":"65c5fb765de7c63123a6da72","key":"seller_registration_notification"}
I created subscriber:
$novu->createSubscriber([
'subscriberId' => 'admin_20',
'email' => 'admin20@mail.com',
'firstName' => 'Sapar',
'lastName' => 'Atayev'
]);
The result was successful.
[2024-02-12 14:21:58] local.INFO: [NovuService][Success]:createSubscriber {"id":"65ca2988619fe4f9cf65013a","subscriberId":"admin_20","firstName":"Sapar","lastName":"Atayev","email":"admin20@mail.com","channels":[],"organizationId":"6409c0dbe5d10c2178942df2","environmentId":"6409c0dbe5d10c2178942e1c","deleted":false,"createdAt":"2024-02-12T14:22:00.538Z","updatedAt":"2024-02-12T14:22:00.538Z","v":0}
Added subscriber to topic:
$novu->topic('seller_registration_notification')->addSubscribers(['admin_20']);
Result is successful.
[2024-02-12 14:21:59] local.INFO: [NovuService][Success]:addSubscribersToTopic {"succeeded":["admin_20"]}
Created workflow manually through interface. Workflow ID is 'lpb-new-seller'. I added the step 'Email' in order to send email notification. Configured the email template in workflow.
Sent notification to topic:
$novu->triggerEvent([
'name' => 'lpb-new-seller',
'to' => [
[
'type' => 'Topic',
'topicKey' => 'seller_registration_notification'
],
],
'payload' => [
'info' => 'info',
'name' => 'Mr. John',
]
])
Success. Novu activity feed shows success. But I don't receive any email to subscriber mail box.
[2024-02-13 07:44:32] local.INFO: [NovuService][Success]:sendNotificationToTopics {"transactionId":"70544a21-28a8-49b1-9ce5-11bb7468627b","acknowledged":true,"status":"processed"}
Need help. Thanks.
$novu->createTopic([
'key' => 'seller_registration_notification',
'name' => $name,
]);
The result is successful.
[2024-02-09 10:16:23] local.INFO: [NovuService][Success]:createTopic {"id":"65c5fb765de7c63123a6da72","key":"seller_registration_notification"}
I created subscriber:
$novu->createSubscriber([
'subscriberId' => 'admin_20',
'email' => 'admin20@mail.com',
'firstName' => 'Sapar',
'lastName' => 'Atayev'
]);
The result was successful.
[2024-02-12 14:21:58] local.INFO: [NovuService][Success]:createSubscriber {"id":"65ca2988619fe4f9cf65013a","subscriberId":"admin_20","firstName":"Sapar","lastName":"Atayev","email":"admin20@mail.com","channels":[],"organizationId":"6409c0dbe5d10c2178942df2","environmentId":"6409c0dbe5d10c2178942e1c","deleted":false,"createdAt":"2024-02-12T14:22:00.538Z","updatedAt":"2024-02-12T14:22:00.538Z","v":0}
Added subscriber to topic:
$novu->topic('seller_registration_notification')->addSubscribers(['admin_20']);
Result is successful.
[2024-02-12 14:21:59] local.INFO: [NovuService][Success]:addSubscribersToTopic {"succeeded":["admin_20"]}
Created workflow manually through interface. Workflow ID is 'lpb-new-seller'. I added the step 'Email' in order to send email notification. Configured the email template in workflow.
Sent notification to topic:
$novu->triggerEvent([
'name' => 'lpb-new-seller',
'to' => [
[
'type' => 'Topic',
'topicKey' => 'seller_registration_notification'
],
],
'payload' => [
'info' => 'info',
'name' => 'Mr. John',
]
])
Success. Novu activity feed shows success. But I don't receive any email to subscriber mail box.
[2024-02-13 07:44:32] local.INFO: [NovuService][Success]:sendNotificationToTopics {"transactionId":"70544a21-28a8-49b1-9ce5-11bb7468627b","acknowledged":true,"status":"processed"}
Need help. Thanks.