How to refer BCC from inbound email?

priyankapalaska
Giga Contributor

Hi,

I want to retrieve BCC address from inbound email. Currently i can refer to, from, cc but not BCC.

could you please help me in this?

Appreciate your quick reply.

Thank You.

15 REPLIES 15

yes,


lks
ServiceNow Employee
ServiceNow Employee

Hello Priyanka,



This is an interesting question but not an easy going 🙂 The field Blind copied on sys_email table is to outbound emails and not for inbound therefore, that will not help. Whenever you receive an inbound email, you don't see the bcc email address in the respective sys_email record which is why you don't see this or let's say you cannot retrieve it. I would say this is not an issue with ServiceNow platform as the actual bcc email address processing happens at the mail server level.



Therefore, when you really want to see/retrieve the bcc email address on inbound emails, it requires doing some work at the mail server level.



Please check this link How we handled BCC   for further guidelines.


prashantatsastr
Giga Expert

Hi Priyanka,



You can refer bcc address in inbound script. If you want to check email address in bcc , please use below



email.headers.indexOf('@abc.com')>-1;



Please let me know if you need more details.



PS: Please hit like, mark helpful/ correct depending on impact of the response.



Regards,


Prashant


even headers does not contain bcc address.


lks
ServiceNow Employee
ServiceNow Employee

Yes Priyanka, you're right! You don't see the bcc email address in your sys_email record not even in headers. This remains or let's say dealt with at the mail server level only and required talking to your mail server admin for further suggestion and changes.