Originally updated on March 6, 2016 by SwathiBN |
Abstract : This article aims at providing detailed steps to solve the issue of Mail Mime Service failing to send the .tif/.tiff documents as attachment.
NOTE:- In writing this article, all the configurations and tests were carried out on 5020402 and 5020500 version of SI.
Brief description of the problem occurrence :-
1. Create a simple BP to have the MailMimeService to send the attachments.
A sample BP is shown below :-
<process name="MailMimeTest">
<sequence name="General Start">
<operation name="Mail Mime Service">
<participant name="MailMimeService"/>
<output message="MailMimeServiceInputMessage">
<assign to="mail-mime-body">true</assign>
<assign to="mail-mime-operation">build</assign>
<assign to="mail-mime-recipient">abc@in.ibm.com</assign>
<assign to="mail-mime-sender">abc@in.ibm.com</assign>
<assign to="mail-mime-set-attachment">TRUE</assign>
<assign to="mail-mime-subject">Test only message</assign>
<assign to="mail-mime-use-doc-area">False</assign>
<assign to="." from="*"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
</sequence>
</process>
2. Execute this BP by passing a .tif/.tiff document as the input.
3. Notice that the BP fails to send this attachment.
Attaching the screen shot for reference. 
Resolving the issue :-
1. In the mail.properties file, add .tiff,.tif to the defaultBinaryFileExtensions property as shown below :-
defaultBinaryFileExtensions=.pdf,.doc,.jpeg,.zip,.mpeg,.gif,.ppt,.jpg,.xls,.bmp,.docx,.xlsx,.mp3,.tiff,.tif
Then run setupfiles and restart SI.
2. Execute the same BP by passing the .tiff/.tif file as input document.
3. Notice that the BP passed without any issues and in my BP I had the SMTP Send Adapter to send this file as an email.
Attaching the screen shot for reference as well as the file sent by SI and received in the email.


#DataExchange#IBMSterlingB2BIntegratorandIBMSterlingFileGatewayDevelopers