[Email-ext] Add images to mail

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Email-ext] Add images to mail

Maciej Gąsiorowski
Hi, I want to add images to mail body (from artifacts or workspace folder). It is possible ? I add img tag, where src is link to artifacts, in Email Template Testing everything is ok, but when jenkins send mail, there is no img src.

Best regards,
Maciej

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Email-ext] Add images to mail

slide
If the recipient of the email is not on the network where those resources are available, you won't see them in the email. You can use the inlining option data-inline="true" in your HTML template and the plugin should inline images as base64 encoded, so they should display.


On Fri, Jun 13, 2014 at 2:12 AM, Maciej Gąsiorowski <[hidden email]> wrote:
Hi, I want to add images to mail body (from artifacts or workspace folder). It is possible ? I add img tag, where src is link to artifacts, in Email Template Testing everything is ok, but when jenkins send mail, there is no img src.

Best regards,
Maciej

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Email-ext] Add images to mail

Maciej Gąsiorowski
slide thanks for reply, but it doesn't solve my problem.

I want to add images that will be visible to all recipients, no matter if they are logged into Jenkins or not.

Any ideas ? :)


W dniu piątek, 13 czerwca 2014 14:28:40 UTC+2 użytkownik slide napisał:
If the recipient of the email is not on the network where those resources are available, you won't see them in the email. You can use the inlining option data-inline="true" in your HTML template and the plugin should inline images as base64 encoded, so they should display.


On Fri, Jun 13, 2014 at 2:12 AM, Maciej Gąsiorowski <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="524MzGCwwWUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">maciej.m.g...@gmail.com> wrote:
Hi, I want to add images to mail body (from artifacts or workspace folder). It is possible ? I add img tag, where src is link to artifacts, in Email Template Testing everything is ok, but when jenkins send mail, there is no img src.

Best regards,
Maciej

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="524MzGCwwWUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.



--
Website: <a href="http://earl-of-code.com" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fearl-of-code.com\46sa\75D\46sntz\0751\46usg\75AFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fearl-of-code.com\46sa\75D\46sntz\0751\46usg\75AFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg';return true;">http://earl-of-code.com

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Email-ext] Add images to mail

slide

That's where the data-inline stuff comes in, the images will be inkined as base64 encoded data.

On Jun 16, 2014 5:34 AM, "Maciej Gąsiorowski" <[hidden email]> wrote:
slide thanks for reply, but it doesn't solve my problem.

I want to add images that will be visible to all recipients, no matter if they are logged into Jenkins or not.

Any ideas ? :)


W dniu piątek, 13 czerwca 2014 14:28:40 UTC+2 użytkownik slide napisał:
If the recipient of the email is not on the network where those resources are available, you won't see them in the email. You can use the inlining option data-inline="true" in your HTML template and the plugin should inline images as base64 encoded, so they should display.


On Fri, Jun 13, 2014 at 2:12 AM, Maciej Gąsiorowski <maciej.m.g...@gmail.com> wrote:
Hi, I want to add images to mail body (from artifacts or workspace folder). It is possible ? I add img tag, where src is link to artifacts, in Email Template Testing everything is ok, but when jenkins send mail, there is no img src.

Best regards,
Maciej

--
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-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
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 [hidden email].
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Email-ext] Add images to mail

Maciej Gąsiorowski
But when I add this to img tag, this does not change anything. Maybe I am doing something wrong ?

Here is my code:

</table>
 <br />
 <h3>Icons:</h3>
 <table width="100%" cellpadding="0" cellspacing="0" style="font-family: Verdana, Helvetica, sans serif; font-size: 11px; color: black">
  <j:if test="${build.artifacts!=null and build.artifacts.size()!=0}">
   <j:forEach var="artifact" items="${build.artifacts}" varStatus="loop">
    <img src="${rooturl}${build.url}artifact/${artifact}" data-inline="true" />
   </j:forEach>
  </j:if>
</table>



W dniu poniedziałek, 16 czerwca 2014 14:39:40 UTC+2 użytkownik slide napisał:

That's where the data-inline stuff comes in, the images will be inkined as base64 encoded data.

On Jun 16, 2014 5:34 AM, "Maciej Gąsiorowski" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="F7XqQJ5xk88J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">maciej.m.g...@gmail.com> wrote:
slide thanks for reply, but it doesn't solve my problem.

I want to add images that will be visible to all recipients, no matter if they are logged into Jenkins or not.

Any ideas ? :)


W dniu piątek, 13 czerwca 2014 14:28:40 UTC+2 użytkownik slide napisał:
If the recipient of the email is not on the network where those resources are available, you won't see them in the email. You can use the inlining option data-inline="true" in your HTML template and the plugin should inline images as base64 encoded, so they should display.


On Fri, Jun 13, 2014 at 2:12 AM, Maciej Gąsiorowski <maciej.m.g...@gmail.com> wrote:
Hi, I want to add images to mail body (from artifacts or workspace folder). It is possible ? I add img tag, where src is link to artifacts, in Email Template Testing everything is ok, but when jenkins send mail, there is no img src.

Best regards,
Maciej

--
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-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.



--
Website: <a href="http://earl-of-code.com" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fearl-of-code.com\46sa\75D\46sntz\0751\46usg\75AFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fearl-of-code.com\46sa\75D\46sntz\0751\46usg\75AFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg';return true;">http://earl-of-code.com

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="F7XqQJ5xk88J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Email-ext] Add images to mail

Jeff Lett
Whats the preferred way to do this these days?

On Monday, June 16, 2014 at 10:29:04 AM UTC-4, Maciej Gąsiorowski wrote:
But when I add this to img tag, this does not change anything. Maybe I am doing something wrong ?

Here is my code:

</table>
 <br />
 <h3>Icons:</h3>
 <table width="100%" cellpadding="0" cellspacing="0" style="font-family: Verdana, Helvetica, sans serif; font-size: 11px; color: black">
  <j:if test="${build.artifacts!=null and build.artifacts.size()!=0}">
   <j:forEach var="artifact" items="${build.artifacts}" varStatus="loop">
    <img src="${rooturl}${build.url}artifact/${artifact}" data-inline="true" />
   </j:forEach>
  </j:if>
</table>



W dniu poniedziałek, 16 czerwca 2014 14:39:40 UTC+2 użytkownik slide napisał:

That's where the data-inline stuff comes in, the images will be inkined as base64 encoded data.

On Jun 16, 2014 5:34 AM, "Maciej Gąsiorowski" <[hidden email]> wrote:
slide thanks for reply, but it doesn't solve my problem.

I want to add images that will be visible to all recipients, no matter if they are logged into Jenkins or not.

Any ideas ? :)


W dniu piątek, 13 czerwca 2014 14:28:40 UTC+2 użytkownik slide napisał:
If the recipient of the email is not on the network where those resources are available, you won't see them in the email. You can use the inlining option data-inline="true" in your HTML template and the plugin should inline images as base64 encoded, so they should display.


On Fri, Jun 13, 2014 at 2:12 AM, Maciej Gąsiorowski <maciej.m.g...@gmail.com> wrote:
Hi, I want to add images to mail body (from artifacts or workspace folder). It is possible ? I add img tag, where src is link to artifacts, in Email Template Testing everything is ok, but when jenkins send mail, there is no img src.

Best regards,
Maciej

--
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-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.



--
Website: <a href="http://earl-of-code.com" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fearl-of-code.com\46sa\75D\46sntz\0751\46usg\75AFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fearl-of-code.com\46sa\75D\46sntz\0751\46usg\75AFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg';return true;">http://earl-of-code.com

--
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-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/16cdd761-510e-4b7c-b1d8-06d2d28a6fb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Email-ext] Add images to mail

Rahul Bhatt
In reply to this post by Maciej Gąsiorowski
Does anyone get a solution on this? I am facing the same issue. EmailExt plugin sending email but not the image.

On Friday, 13 June 2014 14:42:44 UTC+5:30, Maciej Gąsiorowski wrote:
Hi, I want to add images to mail body (from artifacts or workspace folder). It is possible ? I add img tag, where src is link to artifacts, in Email Template Testing everything is ok, but when jenkins send mail, there is no img src.

Best regards,
Maciej

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9dd8fb53-f74f-4081-a09d-a9a09573b9d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.