4 Replies Latest reply on Dec 7, 2012 5:20 AM by 977467

    Email Attachments

      I want to send attachments in the email.
      Attachment contains plain text message which I want to fetch from one of the variable.
      I would appreciate some guidance for achieving this requirement.
        • 1. Re: Email Attachments
          Did you tried this.


          If you find any exception, come back and post the exception.

          • 2. Re: Email Attachments
            Hi Sumit:

            Maintain a string element in your schema say for example "AttachmentString" and pass the same in Email activity "Attachment" tab

            Sample Schema:



            This will get the data from the element "AttachmentString" and pass on the same as attachment to the mail.

            It is also important to pass on the right mime type. By default it will be "text/html;"

            • 3. Re: Email Attachments
              Ashutosh Singh
              Hi Sumit,
              Follow below steps,

              1: Add Email Activity
              2: Give Details Under "General"
              3: Goto Attachments
              4: There you will see three tabs

              Name,Mime Type,Value

              Name is the name which you want for the attachment file. Use extensions also like .txt etc
              MimeType you can give text/html; for plain texts
              Value is used for the content of the attachment. Use expresion builder to fetch your variable and give under this tab.

              Deploy and run. Attachments will start going through email.

              • 4. Re: Email Attachments
                Hi Ashutosh,
                Thank You. It is working.
                Can you tell me the process how I can attach Image in the attachment ?