The easiest way to do this would be to use a presend script and add the
header there on the msg object, which is an instance of MimeMessage. You
can look at the docs for that and the presend script feature in email-ext
to determine what you need to do.

On Wed, Jan 20, 2016, 02:30 Sinai Rijkov <yasi...@gmail.com> wrote:

> Hi,
>  I need to use Expiration date,when I'm sending email from plugin.
>
>
>
> I've found ,that i can use some plugin,where we can edit headers - *Email-ext
> plugin*
> How I can use Email-ext plugin for Jenkins and add custom header, like
> Expiration date?
>
> But any moresuggestions will be welcome. :)
>
>
>
>
> Example:
>
> Expiry-Date:  header.
>
> sendmail from CentOS:
>
>
> echo -e "Content-Type: text/plain\r\nExpiry-Date: Fri, 20 Jan 2010
> 18:00:00 +0200 From: jenk...@mycompany.com <jenk...@dell-idc.com>\r\
> nSubject: Test\r\n\r\nTest with expiration for tomorrow 20 Jan 2016" |
> sendmail -f sen...@gmail.com  destinat...@gmail.com
>
>
> So at Outlook you can see like this:
>
>
>
> [image: Inline image 1]
>
> --
> 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/213adcaa-4c61-4bee-8b5b-906eb65682ae%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/213adcaa-4c61-4bee-8b5b-906eb65682ae%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 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/CAPiUgVegdpRtMoEeH%2B0xqvaahUnsXenqu0HKPYnbQBPPdTb33Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to