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

YEAH !!!

I think it was as simple as that 🙂

You do not have your outbound emails active...

If I turn off "Outbound EMail", my EMail HEader looks like yours:

find_real_file.png

find_real_file.png

 

You can also see in your screenshot, that the email is ready to be sent, but not sent yet.

I should have seen that earlier - sorry 🙂

 

find_real_file.png

 

Check it out and let me know. I am hunting to get the 40 Points for the correct answer.

I hope this is ths (very simplest) solution to the problem.

Let me know.

BR

Dirk

malinig
Giga Contributor

Hi Dirk,

I dont think that is the issue, there are two notifications running on publications. One of the notification get triggers when the recepients get updated  after publication is published, and that notification is triggering for me.The one which is not working for me is when published recepients are not getting added in the bcc.

 

 

This is the notification which is getting triggered when there is an update in the list.

 

find_real_file.pngfind_real_file.png

 

 

 

find_real_file.png

 

malinig
Giga Contributor

By the way what instance are you using??

Hi

I am using ORLANDO Release, but I do not think, this is the reason...

So, what is your problem at all? I am confused. You can show me both notifications as screenshots, and definitively, they are not sent out, because they still are "send-ready" - that in turn means, that your email setting does not have "Outbound Email" enabled - as I wrote above.

In THAT case, also my BCC list is empty (as you can see from my last example above).

If I get you right, your problem is to get the "INITIAL" Notification, right?

The one which fires at the moment, when the Publication changes the Stage to "Published", right?

But if that is the issue, you are already getting the email - it is just not being sent out (you can find it in your "OUTBOX").

Maybe I got something wrong?!?

Let me know, please.

BR

Dirk 

 

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