Targeted Communications

malinig
Giga Contributor

Hi,

I have created receipients list in the Publications.But the users in the receipients list are not receiving email notifications when the publication is published.There are some out of the box notifications which are configured but sn_publications.createEmail is not getting triggered and Targeted Communication Send Email  notification is not sent.

Can any one help me resolve this issue.

 

Thanks

Malini

 

1 ACCEPTED SOLUTION

DirkRedeker
Mega Sage

Hi

I just searched a lot in the scripts and BR of the Targeted Communication and found out the following for the Event you are referring to (Event = "sn_publications.addBCC").

This Event is fired in one Script Include called "RecipientsListApi" in the function "_getNewRecepients()" (which is called internally, when the public Function "refreshRecipients()")

The public function "refreshRecipients()" in turn, is called from (e.g.) the Scheduled Job called "Targeted Communications Recipients Refresh" (running daily at midnight).

However: This function fires the Event just in case, you added NEW Recipients to the Recipient List AND the "EMail Account" configuration record for your "SMTP" Account is having either a "FROM" value, OR a "User Name" value. If that is EMPTY, the "addBCC" Event will not be fired.

For Reference, see screenshots below:

a) The SMTP EMail Account config

find_real_file.png

find_real_file.png

b) here comes the code snippet reading the SMTP Account (Script Include "RecipientsListApi"):

find_real_file.png

c) Here is the CODE Snippet to fire the event (Script Include "RecipientsListApi")

find_real_file.png

So, finally, can you check your SMTP Account Config?

For me, the Event was fired, when I manually executed the Scheduled Job (see screenshot below):

find_real_file.png 

Reviewing the EMail Log, I was able to see the new Notification created...
In the "Bcc" List (in the Header of the EMail), I was able to find exactly the two NEW added Users to the Recipient List.

As a result. "Refreshing" a Recipient List (not inside of a Publication, but JUST the configuration of the List itself), will fire the "missing" emails to the new recipients - for all affected Publications in one shot. That is quite cool! 

 

BTW: How many answers do you expect me to send to you until you at least click once on "helpful" (which gives me extra points in the community and keep me motivated here)?

Thanks for answering

BR

Dirk

 

 

 

 

 

View solution in original post

22 REPLIES 22

malinig
Giga Contributor

Hi Dirk,

My issue is resolved thanks for all your help.For some reason recipients were not shown in the To list and bcc as it is visible for you in the emails when it was published..But when I actually impersonated as one of the user in the recepient list I found notification which was sent to them. Dont know why I did not check that before.

 

Thanks

Malini

Hi

Your list is empty, because your outbound email is not active.

That is the reason why the bcc is not yet filled in. If you activate, it will be.

I just tested it and documented with my Screenshots above.

Feel free to mark my answer also as correct. I guess that my effort is worth it.

Thanks a lot and have fun.

BR Dirk

helro154
Kilo Explorer

Hello

 

We are experiencing the same issue on our system. We have tested and verified that we are able to receive emails from the platform.  The only time we experience an issue is when using the Target Communications Publications. 

All of the settings are set to send and receive email at the moment. It just doesnt work with Target Comm.