I understand, but i didn't had enough to say until now.
First of all, here is the code:
Its a process called by an operation in a BO main form.
If FVM.DTA_USR_SENDAPROVAL IS UNDEFINED Then
REPORT ERROR 'THIS FVM WAS NEVER SENT.'
If FVM.DTA_USR_UPDATE>FVM.DTA_USR_SENDAPROVAL Then
REPORT ERROR 'THIS FVM HAS BEEN UPDATED BY: '+FVM.NME_USR_UPDATED+'\nIN: '+FVM.DTA_USR_UPDATED
FVM.USR_APROVAL=LoggedInRegularUser
FVM.DTA_USR_APROVAL=CURRENT_TIMESTAMP
If FVM.EMAIL_DESTINATION IS DEFINED Then
FVM.CC=FVM.EMAIL_DESTINATION
If FVM.EMAIL_DESTINATION2 IS DEFINED Then
FVM.CC=FVM.CC+';'+FVM.EMAIL_DESTINATION2
If FVM.EMAIL_DESTINATION3 IS DEFINED Then
FVM.CC=FVM.CC+';'+FVM.EMAIL_DESTINATION3
If FVM.EMAIL_DESTINATION4 IS DEFINED Then
FVM.CC=FVM.CC+';'+FVM.EMAIL_DESTINATION4
SEND EnvioFVMAprovada TO FVM.USR_RESPONSIBLEAPROVAL
In the notification i have:
From: <<FVM.USR_SENDAPROVAL.EmailAddress>>
CC: <<FVM.CC>>
BCC: myemail@mydomain.com
HtmlMessage: a html template
Attachment: A word template
I was looking at the log and it shows only 1 email being sent. And now i have a different result.
I received 2 emails with this:
1st Email:
From: RegularUser that sent the form for approval (OK)
To: RegularUser that was responsible for the approval (OK)
CC: Everyone that was supposed to receive the message 1-4 emails(OK)
BCC: Myself (OK)
2nd Email:
From: RegularUser that sent the form for approval (OK)
To: RegularUser that was responsible for the approval (OK)
CC: Everyone that was supposed to receive the message 1-4 emails(OK)
AND Myself (NOT OK...I'M NOT SUPPOSED TO BE ON THE CC)