Hi,
I created a threshold and the following associated action to send an alert by mail.
the problem I have is that it uses my Outlook by default and my email address :
as soon as the threshold is reached, two popup windows appear telling me to allow Outlook to send an email for the CCPulse application.
If I am not in front of my computer and do not click Yes twice, the mail won't be sent.
Is there anyway to get read of these messages ?
Is it possible to use the "smtp_host", "smtp_port" and "smtp_from" to send an alert by mail ? (to have no popup window to click on)
Here is the code I use for the moment :
----------------------------------
'Body of email message
Dim msgBody
msgBody="Alert from CCPulse !!!"
'Call our function with profile, recipient, message, and subject
SendMail "","",msgBody,"GENESYS PRODUCTION : Alert !!!!"
Sub SendMail(profile, recipient,msg,subject)
Dim objSession, objAddrEntry, oInbox, colMessages, oMessage, colRecipients, oRecipient
Set objSession = CreateObject("MAPI.Session")
objSession.Logon profile,"",True,False,0, False
Set objAddrEntry = objSession.CurrentUser
Set oInbox = objSession.Inbox
Set colMessages = oInbox.Messages
Set oMessage = colMessages.Add()
Set colRecipients = oMessage.Recipients
recipient = "weblorenzo@ifrance.fr"
If recipient = "" Then
colRecipients.Add objAddrEntry
Else
colRecipients.Add recipient
End If
colRecipients.Resolve
oMessage.Subject = subject
oMessage.Text = msg
oMessage.Send
objSession.Logoff
Set objSession = nothing
End Sub
----------------------------------
Thanks in advance for your help,
Lorenzo