1

Mule 3.4を使用しており、メールのフォルダからファイルを送信しようとしています。

コンソールに次のように表示されます。

connector.file.mule.default.receiver.01] org.mule.transport.file.FileMessageReceiver: Lock obtained on file: C:\Users\bekbol\Documents\smtp\test.txt

私の設定ファイルは以下の通りです:

<flow name="outcomingSmtp" doc:name="outcomingSmtp">
    <file:inbound-endpoint path="${file.outcomingSmtp}" responseTimeout="100000" doc:name="File" pollingFrequency="10000" moveToDirectory="${file.outcomingBackupSmtp}">
    <file:filename-wildcard-filter
        pattern="*.txt" />
    <file:file-to-string-transformer doc:name="File to String"/>
    </file:inbound-endpoint>
    <object-to-byte-array-transformer doc:name="Object to Byte Array"/>
    <smtp:outbound-endpoint host="${smtp.host}" port="${smtp.port}" user="${email.username}" password="${email.password}" to="${header.to}" from="${header.from}" subject="${header.subject}" responseTimeout="100000" mimeType="text/plain" doc:name="SMTP">
    <email:string-to-email-transformer doc:name="String to Email"/>
    </smtp:outbound-endpoint>
</flow>

4

1 に答える 1

0

私はあなたが必要だとは思わない

<file:file-to-string-transformer doc:name="File to String"/>

あなたの中にネストされています<file:inbound-endpoint>。閉めたらすぐ外に出し</file:inbound-endpoint>

削除する<object-to-byte-array-transformer doc:name="Object to Byte Array"/>

于 2013-10-14T13:35:56.103 に答える