infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Multiple email addresses in Alert configuration
Mike Campbell
Sorry for the newbie question, but I am trying to setup alerts in 5.7 to send to multiple email addresses. Seems everything I have tried only sends to the first address. I have enclosed all address withing double quotes:
"address_1 address_2", separated with a comma and a semi-colon, and done the same without the double quotes.
I've search the documentation and the forums and didn't find anything.
Thanks.
Mike Campbell
Find more posts tagged with
Clovertech
Comments
Max Drown
Maybe you could set up an email group to send to?
david_barr
Are you using exec to call mailx?
It might help if you post the line from $HCISITEDIR/Alerts/default.alrt that you are trying to get working.
Mike Campbell
The line in the alert is:
: Action: hcialert2email -TO mike.campbell@nmhs.org, 4025772139@pager.connectingyou.com -SUBJ "Test e-mail and page alert" -MSG defaultTest_Alert-07969.msg -FROM mike.campbell@nm
hs.org -SERVER localhost -PORT 25
We are doing this out of the alert config. and not in a proc or script.
Keith McLeod
Just a suggestion if you are using UNIX of some flavor, how about defining an alias for you email groups.
In the hci home directory create a '.mailrc' file and add in your alias lines.
alias address.domain,address.domain
use your somegroup_mail alias for the address. If you create other alerts that need this group, you can modify the list in the hci home/hci/.mailrc file instead of every alert.
Verify the alias syntax for your use. The comma separator has worked for me.
example: mail -s "Subject here" somegroup_mail < (file for message body)
Keith McLeod
Have not sent out mail from 5.7 yet, however the alias route may still be an alternative. Did you try a semi colon?
david_barr
I think that "hcialert2email" must be a script that is unique to your site. You need to look at that script to see how it is processing the -TO argument in order to fix this. If you post the script, we can help take a look. You can type "type hcialert2email" or "which hcialert2email" from the command line if you want to figure out where the script is located on your system.
You should be able to run this command from the command line to test changes that you are making without triggering the alert.
Have you tried this? -TO mike.campbell@nmhs.org -TO 4025772139@pager.connectingyou.com
(listing the -TO argument twice)
Mike Campbell
I have tried the semi-colon to no avail. I would imagine that somewhere inside this code the secret handshake resides:
#######################################################################
# main - Main routine for hciguimsg
proc main argv {
set optargs [list
{TO 1 TO }
{MSG 1 MSG }
{SUBJ 1 SUBJ }
{FROM 1 FROM}
{NAME 1 NAME}
{PASS 1 PASS}
{SERVER 1 SERVER}
{PORT 1 PORT} ]
if { [catch {set args [getopt $argv $optargs]} err] } {
echo $err
exit 64
}
if { $FROM == "" } { set FROM "cloverleaf@healthvision.com" }
if { $NAME == "" } { set NAME "" }
if { $PASS == "" } { set PASS "" }
if { $SERVER == "" } { set SERVER "localhost" }
if { $PORT == "" } { set PORT "25" }
SendEmailAsAlert $TO $MSG $SUBJ $FROM $NAME $PASS $SERVER $PORT
#echo $MSG
file delete $MSG
exit 0
Mike Campbell
I did try adding extra -TO to the alert, and that didn't work. No emails were generated when that was in the alert setup.
Jim Kosloskey
Mike,
I am guessing SendEmailAsAlert is the proc where the actual emailing is done.
I would try to look in there to see what it is doing.
Have you contacted support?
Mike Campbell
I've held off contacting support until I posted it out here. That is my next option, probably tomorrow. Thanks all for the great ideas. I'll be sure to post the solution out here for future reference!
System
Originally posted by Michael Lacriola
Here's an example of an action within an alert. This works with no issues. We are Unix here.
mail -s "Please reset rls thread in Epic Site - Error state" michael_lacriola@cdh.org,david_thall@cdh.org </quovadx/messages/camefrom.msg
This should be read as all one line. -s defines the subject. The text of the message is within file /quovadx/messages/camefrom.msg that we define.
Jim Kosloskey
Mike,
It sounds like Cloverleaf(R) 5.7 has the ability internally to specify email right from the new Alerts configurator.
This is something new and as such I think support needs to be involved.
I don't think there are that many of us on 5.7 yet and of those apparently few (maybe you are the only one) have tried this new feature for multiple destinations.
Mike Campbell
Well...somebody has to be the first!!
Again, thanks to all for the tips. I'll let you know what the Cloverleaf folks say.
John Mercogliano
Mike,
It looks like you have a space after the comma. The mime and smpt packages don't like white spaces in the header statements unless you have physicially delimited everything with quotes. Try making your address list one long comma seperated list with no spaces.
I was able to manually run the SendEmailAsAlert proc with multiple addresses that way. I could not run the proceedure as a standalone though. Trying to figure that out. Just loaded 5.7 though
Mike Campbell
I've tried with and without a space after the comma.
Mike Campbell
Well, guess I must have been smoking something. Entering multiple addresses separated by a comma and NO SPACE did the trick. I swear I tried that!
It is working now...so thanks again to all for the great ideas.
:oops:
brent-fenderson
In order to get mutiple go tos in the alerts you have to enclose them in double quotes and separate them with a comma.
This is a windows problem that is leaving the comma out when the alert is fired.
Example:
"elmo@somewhere.net,groucho@somewhere.net"