전체 프로젝트의 일환으로 XML 형식의 데이터를 받아들이고 전자 메일을 생성하는 Message Broker 응용 프로그램을 하나 만들어야합니다. 나는 위의 흐름을 생성하는 XML 파일에 작성해야 무엇을 도와주세요IBM Message Broker로 전자 메일을 보내는 방법은 무엇입니까?
"emailoutput - - 계산 MQ 입력"
나는다음과 같은 하나의 메시지 흐름을 만들었습니다.
ESQL 파일은 아래의 코드를 포함 : 요점() BOOLEAN가 CALL의 CopyMessageHeaders을 BEGIN RETURNS 은() 함수를 만들;
-- Add recipient information to the EmailOutputHeader
SET OutputRoot.EmailOutputHeader.To = '<recipient email address>';
SET OutputRoot.EmailOutputHeader.Cc = '<recipient email address>';
SET OutputRoot.EmailOutputHeader.Bcc = '<recipient email address>';
-- Add sender information to EmailOutputHeader
SET OutputRoot.EmailOutputHeader.From = '<sender email address>';
SET OutputRoot.EmailOutputHeader."Reply-To" = '<reply email address>';
-- Add subject to EmailOutputHeader
SET OutputRoot.EmailOutputHeader.Subject = 'Replaced by ESQL compute node.';
-- Add SMTP server information to the LocalEnvironment
SET OutputLocalEnvironment.Destination.Email.SMTPServer ='<smtp.server:port>';
-- Create a new message body, which will be sent as the main text of the email.
SET OutputRoot.BLOB.BLOB = CAST('This is the new text for the body of the email.' AS BLOB CCSID 1208);
RETURN TRUE;
END;
당신은 programtically 흐름을 생성하려고합니까? 어떤 경우에만 지원되는 옵션은 Message Flow API를 사용하는 것입니까? – Dave