How to redirect email to other email address?

Madhavi5
Giga Contributor

I have a requirement,if sender's email contains 'xyz' or 'abc' create a ticket else redirect that email to email@company.com.How to achieve this?i have created inbound email action for 1st part but looking for help for redirection to other email address part.

I am trying to achieve this by creating inbound email action which will trigger an event for email notification.

I have created inbound like:

table= sys_email

condition = email.from.toLowerCase().indexOf("company") == -1

script: gs.eventQueue("email.redirection", current);

email notification: after , insert

when- event is fired

table- sys_email

send to: users

This is not working.Can anybody tell me where i am going wrong?

3 REPLIES 3

Steven Herrmann
Giga Guru

Hey there abc12,

I think this between this image and the link below, you'll have your answer.  🙂

find_real_file.png

https://community.servicenow.com/community?id=community_question&sys_id=3d420baddb98dbc01dcaf3231f96...

I hope this information helps you!

If my reply helps you at all, I'd really appreciate it if you click the Helpful button and if my reply is the answer you were looking for, it would be awesome if you could click both the Helpful and Accepted Solution buttons!  🙂

Thanks and have a great day!

Steve

Hi Steve,

My requirement is to redirect email which is sent to servicenow instance to other email address which is not servicenow.

 

I am trying to achieve this by creating inbound email action which will trigger an event for email notification.

I have created inbound like:

table= sys_email

condition = email.from.toLowerCase().indexOf("company") == -1

script: gs.eventQueue("email.redirection", current);

email notification: after , insert

when- event is fired

table- sys_email

send to: users

This is not working.Can anybody tell me where i am going wrong?