John Pereira
can i add attachments to emails for alerts coming into endpoints. what are the options..
0
Comments
Please sign in to leave a comment.
Hi John,
You can add attachments to outbound messages at message send time.
There are some instructions on how to do that here.
https://help.xmatters.com/ondemand/xmodwelcome/communicationplanbuilder/message-sender-configure-form.htm
Does this answer your question? If not, can you give me some more context about what you mean by 'alerts coming into endpoints'?
thanks, Iain
iain, this does not solve my problem.
my customer is sending alerts to the alarmpoint entpoints which then comes into alarmpoint. as of now customer is sending only text , so in the end he recieves an email with text. now customer wants attachment also to be included with the email, preferably the attachment should show on the email inline via html .
all this is done via action scripts.
i need help with a sample code that can accept attachments and send it via email notification to cusotmer email.
is this possible
"Add attachments such as images to the email alert. With HTML, have the image show up inline. "
Hi John,
If the attachments are hosted somewhere else, you could pass in the location (URL) of the attachments as an event property and use that to reference those documents in the message content.
For example, you could reference the location of an image by URL and add that reference to the outbound email message content.
If you have other documents that could not be embedded into an email, you could also use those URL's to add download links to your outbound message content.
Is that more inline with what you want to do?
yes, this might work for me. can you help with a sample code on how i can integrate this in the action scripts for the domain.
another question : what about content.attachments ? is this any help.
Hi John,
Other xPerts might be more familiar with action scripts that I am, I'll see anyone else can provide some examples.
If you want to do this using our Communication Plan Builder and REST API instead I can help though.
Iain
iain , im running on-premise version of xmatters. will those solutions help.
No, the Communication Plan Designer and REST API are only available in xMatters OnDemand.
Hold tight though, I'll find someone else that can help you.
iain, another question i had. you suggested i add url link as downloads.
the url links i am planing to have only gif images.
can those images be directly shown in the email instead of download links..
please check this also for me ,thanks
Hey John,
Images in emails are tricky. Each mail client differs in how they are displayed and no matter what you in xMatters the email client will do what it wants. I found this article that has some good info around this.
With that said, I was able to root around the help to find a generateUUID function that looks like it might generate the items for you to embed an image. Although I'm not sure how you would get the attachment from the email into xMatters and then into this script.
I hope that helps.
--- Travis
John,
If you are just trying to add logos or images, you should look at some of the newer integration scripts, I am looking at the Service Now 2.0 scripts, and they have logo data in it:
in Process/Initial:
# Set this if you want the logo displayed within HTML Email Notifications.
$main.use_logo = @event::getProperty("uselogo", true)
# The path to the HTML Email Graphic.
# This is the correct path for 5.0. For 4.1, the correct path should be:
# "/static/images/xmatters/logos/xmatters_email.gif"
$logo = @event::getProperty("mainlogo", "/static/images/logos/xmatters_email.gif")
$main.logo = $main.xmatters_url & $logo
in Presentation/createHTMLDeviceContent:
# Set this if you want the logo displayed within HTML Email Notifications.
$main.use_logo = @event::getProperty("uselogo", true)
# The path to the HTML Email Graphic.
# This is the correct path for 5.0. For 4.1, the correct path should be:
# "/static/images/xmatters/logos/xmatters_email.gif"
$logo = @event::getProperty("mainlogo", "/static/images/logos/xmatters_email.gif")
$main.logo = $main.xmatters_url & $logo
John,
If you are looking for pure attachements, when we used a Premises xMatters box to notify the support reps, I also attached the voice recording from the customer that called in to the outbound email using something like this:
#set where the recordings are located
$drive = "file:///C:"
$path = "\Progra~1\AlarmP~1\AlarmP~1\node/phone-~1\Datastore\domains\common\record~1\english\messages\"
Attach the recording to the message, note that event.supportmessage is a reference to the token I handed in to the JavaClient as the recording.
$content.attachments = $drive & $path & $event.supportmessage & ".vox"\
Kim, thanks for the integration script, that helped.
Also for the $content.attachments , can i attach multiple attachments ( more than 1) with the same entry
John,
I have never tried multiple attachments