1
0
-1

I am trying to set a CC email address on an instance of the Emailer class.  The "to" email receives the email and the CC email address is a string of the expected value.

Here is the snippet of the code I am attempting to use


String sdrEmailAddress = svcDef.paramsMap["SDR Email"]
String ccEmailAddress = svcDef.paramsMap["CC Email"]?:""

byte[] receipt= txn.receiptPdf
Emailer emailer=new Emailer()
.setToAddress(sdrEmailAddress)
.setCcAddress(ccEmailAddress)
.setMessage(sdrMessage)
.setAttachmentMap(["receipt.pdf":receipt])
.setSubject("TES Analysis 2018 Notification: From ${prospect["Email"]}")

logger.debug(ccEmailAddress)

//Checks for test flag
if(prospect.testFlag) {
logger.debug("using test Flag")
emailer.sendEmail()
}else{
emailer.queueEmail()
}

If the test flag is not set the address described by sdrEmailAddress receives the email and the email described by ccEmailAddress does not.

If the test flag is set both email addresses receive the email

Manager version: 5.1.7

What can I do to get the desired behavior?

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      Hi Christopher

      Currently CC is not supported with queue email.

      Could you please raise a feature request?

      Cheers
      Rado

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi Rado

        I have raised ticket: AVT-5532, for this issue

        Thanks,

        Chris

          CommentAdd your comment...