cancel
Showing results for 
Search instead for 
Did you mean: 

Send Mail action with attached files

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

agentry_src
Active Contributor
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

It works! Thank you very much Mike.

Regards,

José Luis

Former Member
0 Kudos

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.

agentry_src
Active Contributor
0 Kudos

I would suspect that the upgrade will not do anything for you. Can you describe the transaction and links a bit more?

Regards,

Mike

agentry_src
Active Contributor
0 Kudos

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