Hi Expert,
I configured in my IFLow the use of Mail Adapter and works fine, but now I have the need to extend my interface also use the CC field in the email.
I have already add the parameter CC in my IFlow and in my Operation Mapping as I already do for the parameter TO and this part is ok or that's how it seems.
![IFLow.jpg]()
The problem/error appears in the java mapping when I manage this new parameter and insert it in the structure, see code below:
...
String to = getInputParameters().getString("TO");
String cc = getInputParameters().getString("CC");
...
this.rootElement = new XMLElement("ns1:Mail", XMLElement.XML_TYPE_ELEMENT, null);
this.rootElement.addAttr("xmlns:ns1", "http://sap.com/xi/XI/Mail/30");
if ((sid.equals("I3O")) || (sid.equals("K3O"))) {
this.rootElement.addElement("Subject", 1, " Lieferterminmeldung fuer fehlerhafte Auftraege - " + sid);
} else {
this.rootElement.addElement("Subject", 1, " Lieferterminmeldung fuer fehlerhafte Auftraege");
}
this.rootElement.addElement("From", 1, "a@a.com");
this.rootElement.addElement("To", 1, to);
this.rootElement.addElement("Cc", 1, cc);
this.rootElement.addElement("Content_Type", 1, "text/html");
this.rootElement.addElement("Content", 1, content);
...
The error that I found on Message Monitor is:
![ErrMail.jpg]()
Could someone help me figure out where is my mistake?
Thanks in advance for any help