Skip to Content
author's profile photo Former Member
Former Member

Sending emails with both body and attachment to multiple recipients

I have a requirement to send email with body and attachment to multiple recipients.

Body of the email is a standard text. It is a proxy-to-mail scenario.

Here is what I've done: (I'm using PI 7.11)

One mapping from Source to Target structure (format of the attachment text file)

Second mapping from Target Structure to Mail Package format.

In the second mapping I'm concatenating the output of first step into "Content" of the Mail Package.

"XIPAYLOAD" is the message protocol used.

The "Keep attachments" option in the Mail adapter allows only to send "Content" as attachment or as body of the email.

How to send an email with both content and text?

The other problem is even with using ASMA, I can't send email to multiple recipients. I can only do CC and TO for 1 person each - a total of 2. Although I can resolve this by creating mailing lists, it is better if this can be addressed in PI.

Thanks for any input you can provide!

Edited by: crazylad on Jan 18, 2012 3:39 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2012 at 03:00 PM

    hi,

    for the 1st part (content+attachment), check on SDN, there are some threads with the same topic. (if I'm not wrong)

    for

    The other problem is even with using ASMA, I can't send email to multiple recipients. I can only do CC and TO for 1 person each - a total of 2. Although I can resolve this by creating mailing lists, it is better if this can be addressed in PI.

    personally, I prefer to have a mailing list (or several mailing list) than several email accounts directly written in PI, especially if this is email of employees. By this way the responsible of the mailing list, can easily affect employees himself / herself without to call the help desk or to PI team... For me that's more flexible for the business.

    Anyway, you can precise several emails by using a coma between your email addresses in the "To".

    Regards.

    Mickael

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you for your response Mikael.

      For the first question, I was able to find the solution in the following blog:

      XI Mail Adapter : Dynamically building attachment and message body content using a simple UDF

      (I just needed to search with the right set of key words 😊 )

      The key is to set the "Content Encoding" as "None" in the mail adapter. If this is not done, the mail will be sent with an attachment - untitled.bin containing both the mail body and the attachment text. Also, don't forget to check the "Keep Attachments" checkbox in the mail adapter.

      Multiple recipients could be added by separating the email IDs with a Comma. I have used ASMA to set the recipients.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.