on 08-05-2011 11:37 AM
Hello,
I'm having some problems when I try to attach files to an email. The email is sent with an attached file, but it appears as ATTACH.TXT regardless the AttachmentMimeType property specified. I tried both PDF and PNG files.
If I save that file and then rename it as .PDF or .PNG I can open the file without problems.
I'm using version 12.0.1 and Microsoft Outlook 2003.
Do you know how can I solve this problem?
Best regards.
I've created a transaction with just one "Chart" action and one "Send Mail" action.
For the Chart action, I specify Query and Display templates and provide the params for the query. Image format is set to image/png.
Then, in a "Send Mail" action I'm linking the Chart "EncodedImage" property with the Send Mail "AttachmentContent" property. I also set the "AttachementMimeType" as image/png. "MessageMimeType" is text/html with just some text.
When I execute the transaction, the email I receive has a txt attached. If I rename the file as png the image is shown correctly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Insert a Save Image block between the Chart and Send Email. Save the file as web://<project>/WEB/<somefilename>.png (or .gif, etc.). Then attach the file to the Send Email from the same location.
By doing this you are saving and publishing your image into the MII workbench (actually behind the scenes it will be saved by NW). Now it can be attached as a file instead of an image.
Regards,
Mike
Edited by: Michael Appleby on Aug 5, 2011 1:52 PM
It works! Thank you very much Mike.
Regards,
José Luis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was mistaken, sorry. We have version 12.0.10 (Build 22), not 12.0.1.
Anyway I'll try to upgrade to the latest version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the first suggestion would be to upgrade your MII instance. You are working on 12.0.1 which is very much out of date. I think 12.0 is now up to 12.0.11 so you may find a simple upgrade solves your problems.
Regards,
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.