You are right! It has been added. But when I use the file for the body:, it
was sending me the actual content of the html file as text file.

I was using contentType: 'HTML' after trying to look at the code in github,
but it really needed mimeType to get it working.  I wish there is a way to
mark the threads as 'SOLVED' like on stackoverflow so people can look at
threads with solved answers.

emailext  *mimeType: 'text/html'*, body: '${FILE,path="/tmp/test.html"}',
subject: 'Test', to: 'skris...@ss8.com'

On Thu, Oct 13, 2016 at 7:10 AM, Slide <slide.o....@gmail.com> wrote:

> I believe that was added in 2.50 that was released recently.
>
> On Wed, Oct 12, 2016, 13:57 Sam K <sreeram...@gmail.com> wrote:
>
>> Is there a plan to allow the ${FILE,path="${DIR}/test.html"} option that
>> is already available in the plugin?  That is EXACTLY what most would want I
>> presume.  :)
>>
>>
>> On Tuesday, October 11, 2016 at 11:26:58 AM UTC-7, Sam K wrote:
>>
>> Thanks for bringing this to my attention Mark.  I was not aware of that.
>> The jelly scripts are great which send predefined content.  In my case, I
>> am generating content which I want to send in the body.
>>
>> I am trying to work with mutt email client but having other roadblocks.
>>  :(
>>
>> On Tuesday, October 11, 2016 at 7:24:01 AM UTC-7, Mark Bidewell wrote:
>>
>> Support for templates was added in 2.50 if that helps.
>>
>> On Monday, October 10, 2016 at 1:21:28 AM UTC-4, Sam K wrote:
>>
>> This works for most part.  Except, I have a html formatted file which I
>> would like to send as the body.  Is it possible?  Thanks
>>
>> emailext attachmentsPattern: '*.log, *.html', body: 'BUILD_URL = ' +
>> env.BUILD_URL, subject: 'END Coded Pipeline Build SOURCE - ' + CODE_BRANCH
>> + ' TESTS - ' + TEST_BRANCH, to: MAILING_LIST
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/jenkinsci-users/ba748cfd-f69b-485c-b797-
>> 51572934e22b%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/ba748cfd-f69b-485c-b797-51572934e22b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/I9c4o4qiE10/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAPiUgVeRPtjirXNfbWPCbtP0vu%
> 3Dbmed9PjDVLrjX8ZC7Kw8%2BEA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeRPtjirXNfbWPCbtP0vu%3Dbmed9PjDVLrjX8ZC7Kw8%2BEA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKn1gMv-wY%2B%2BrHnuij%3DKYtbHx6cKRsHy6Rw5qJH%3D8CbN%2Bs%2B7SA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to